{"id":18561009,"url":"https://github.com/artichoke/clang-format","last_synced_at":"2025-04-10T02:31:22.093Z","repository":{"id":38992466,"uuid":"287124855","full_name":"artichoke/clang-format","owner":"artichoke","description":"✏️ clang-format runner for CI","archived":false,"fork":false,"pushed_at":"2025-03-03T20:47:15.000Z","size":15884,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"trunk","last_synced_at":"2025-03-24T15:41:58.471Z","etag":null,"topics":["artichoke","c","ci","clang-format","formatter","javascript","linter","nodejs","npx"],"latest_commit_sha":null,"homepage":"https://github.com/artichoke/clang-format#readme","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/artichoke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-12T22:08:46.000Z","updated_at":"2025-03-03T20:47:17.000Z","dependencies_parsed_at":"2023-02-17T11:15:22.793Z","dependency_job_id":"12cf3660-ad99-4a11-8c69-0887dfa546c4","html_url":"https://github.com/artichoke/clang-format","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artichoke%2Fclang-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artichoke%2Fclang-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artichoke%2Fclang-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artichoke%2Fclang-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artichoke","download_url":"https://codeload.github.com/artichoke/clang-format/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248144198,"owners_count":21054883,"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":["artichoke","c","ci","clang-format","formatter","javascript","linter","nodejs","npx"],"created_at":"2024-11-06T22:05:27.897Z","updated_at":"2025-04-10T02:31:18.847Z","avatar_url":"https://github.com/artichoke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Artichoke `clang-format` Runner\n\n[![GitHub Actions](https://github.com/artichoke/clang-format/workflows/CI/badge.svg)](https://github.com/artichoke/clang-format/actions)\n[![Discord](https://img.shields.io/discord/607683947496734760)](https://discord.gg/QCe2tp2)\n[![Twitter](https://img.shields.io/twitter/follow/artichokeruby?label=Follow\u0026style=social)](https://twitter.com/artichokeruby)\n\n`clang-format` runner that operates recursively on a given directory and has\noutput suitable for use in CI and interactive development.\n\n`clang-format` does not have a pleasant way to output which files are not\nproperly formatted, which is not suitable for CI or code linting. Prior art to\naddress this limitation exists in [Sarcasm/run-clang-format].\n\nThe Artichoke `clang-format` runner does not require Python or an existing\n`clang` installation. This runner is simpler to distribute because it is\ninvokable with [`npx`].\n\nThe Artichoke `clang-format` runner is used to format C sources in the\n[artichoke/artichoke] repository. It will never be published to the npm\nregistry.\n\n## Usage\n\nFormat sources with:\n\n```shell\nnpx github:artichoke/clang-format path/to/repo\n```\n\nor the current directory with:\n\n```shell\nnpx github:artichoke/clang-format\n```\n\nThis runner supports a `--check` argument which does not format sources and\ninstead exits with an error on bad formatting. This flag is appropriate for\nrunning `clang-format` in CI.\n\n```shell\nnpx github:artichoke/clang-format --check\n```\n\n## License\n\nThe Artichoke `clang-format` runner is licensed under the [MIT License](LICENSE)\n(c) Ryan Lopopolo.\n\nThis tool distributes pre-compiled `clang-format` binaries which part of the\nLLVM Project and are subject to the [Apache 2.0 License with LLVM\nexceptions][clang-format-license].\n\n[sarcasm/run-clang-format]: https://github.com/Sarcasm/run-clang-format\n[`npx`]:\n  https://blog.npmjs.org/post/162869356040/introducing-npx-an-npm-package-runner\n[artichoke/artichoke]: https://github.com/artichoke/artichoke\n[clang-format-license]: https://llvm.org/LICENSE.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartichoke%2Fclang-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartichoke%2Fclang-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartichoke%2Fclang-format/lists"}