{"id":20436408,"url":"https://github.com/cloderic/clang_format_check","last_synced_at":"2025-04-12T21:42:01.408Z","repository":{"id":30137029,"uuid":"33687105","full_name":"cloderic/clang_format_check","owner":"cloderic","description":"Coding style checker relying on clang-format","archived":false,"fork":false,"pushed_at":"2017-11-17T14:37:25.000Z","size":220,"stargazers_count":14,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-12T21:41:49.768Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloderic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-09T19:04:34.000Z","updated_at":"2023-01-29T13:11:52.000Z","dependencies_parsed_at":"2022-08-17T18:50:49.721Z","dependency_job_id":null,"html_url":"https://github.com/cloderic/clang_format_check","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloderic%2Fclang_format_check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloderic%2Fclang_format_check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloderic%2Fclang_format_check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloderic%2Fclang_format_check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloderic","download_url":"https://codeload.github.com/cloderic/clang_format_check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637831,"owners_count":21137538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T08:41:28.203Z","updated_at":"2025-04-12T21:42:01.389Z","avatar_url":"https://github.com/cloderic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clang-format check #\n\n:construction: _Still a work in progress, contributions are welcome_ :construction:\n\n[![Build Status](https://travis-ci.org/cloderic/clang_format_check.svg?branch=master)](https://travis-ci.org/cloderic/clang_format_check)\n\nIn the spirit of linter and coding style checker such as [jshint](http://jshint.com) or [jscs](http://jscs.info), this helper script relies on [clang-format](http://clang.llvm.org/docs/ClangFormat.html) to check and report coding style issues in C and C++ codebases.\n\n    usage: clang_format_check.py [-h] [-s STYLE]\n                                 [--success-on-missing-clang-format]\n                                 file [file ...]\n\n    C/C++ formatting check using clang-format\n\n    positional arguments:\n      file                  Paths to the files that'll be checked (wilcards\n                            accepted).\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      -s STYLE, --style STYLE\n                            Coding style, pass-through to clang-format's\n                            -style=\u003cstring\u003e, (default is 'file').\n      --success-on-missing-clang-format\n                            If set this flag will lead to a success (zero exit\n                            status) if clang-format is not available.\n\n## Install dependencies ##\n\nRun the usual `pip install -r requirements.txt`\n\n## Running tests ##\n\nSimply run [`nosetests`](https://nose.readthedocs.org) to launch the script on all `.cpp` files under `test/data`.\n\n- All tests are run with the _file_ style, they'll rely on their `.clang-format` file.\n- All files ending with `...ok.cpp` should be valid.\n- All files ending with `...ko.cpp` should be invalid, the tool outputs should match the accompanying `...ko.cpp.out`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloderic%2Fclang_format_check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloderic%2Fclang_format_check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloderic%2Fclang_format_check/lists"}