{"id":20358194,"url":"https://github.com/irods/irods_clang_format_configuration","last_synced_at":"2025-09-02T08:36:29.601Z","repository":{"id":66171944,"uuid":"131735900","full_name":"irods/irods_clang_format_configuration","owner":"irods","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-01T21:15:28.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-10T11:42:36.530Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/irods.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-05-01T16:27:11.000Z","updated_at":"2023-01-31T16:59:42.000Z","dependencies_parsed_at":"2023-07-31T08:16:45.006Z","dependency_job_id":null,"html_url":"https://github.com/irods/irods_clang_format_configuration","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/irods/irods_clang_format_configuration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irods%2Firods_clang_format_configuration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irods%2Firods_clang_format_configuration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irods%2Firods_clang_format_configuration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irods%2Firods_clang_format_configuration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irods","download_url":"https://codeload.github.com/irods/irods_clang_format_configuration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irods%2Firods_clang_format_configuration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273257109,"owners_count":25073528,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-14T23:25:48.761Z","updated_at":"2025-09-02T08:36:29.575Z","avatar_url":"https://github.com/irods.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# irods_clang_format_configuration\n\nThis repository contains the .clang-format configuration file used by several iRODS C/C++ projects.\n\n## Projects using this Style Configuration\n- irods_capability_indexing\n- irods_capability_publishing\n- irods_capability_storage_tiering\n- irods_client_cli\n- irods_client_rest_cpp\n- irods_microservice_plugins_curl\n- irods_netcdf\n- irods_resource_plugin_s3\n- irods_rule_engine_plugin_audit_amqp\n- irods_rule_engine_plugin_hard_links\n- irods_rule_engine_plugin_logical_quotas\n- irods_rule_engine_plugin_metadata_guard\n- irods_rule_engine_plugin_python\n\n## Adding a Style Configuration to your Project\nTo add the style configuration file to your project, copy the .clang-format file into the root directory or a parent directory of your project. Clang-Format will check the current directory and then the parent directories until it finds a style configuration file.\n\n## Adding a Git Pre-Commit Hook\nGit can run clang-format against your changes before being committed. This guarantees that the formatting of your code always matches the requirements of the project. A pre-commit hook is provided by this repository.\n\nBefore you can use the pre-commit hook, you'll need to make sure your git configuration defines the correct properties. To do that, run the following commands:\n```bash\ngit config --global clangformat.binary clang-format\ngit config --global clangformat.style file\ngit config --global clangformat.extensions 'h,c,hpp,cpp'\n```\n\nTo enable the pre-commit hook, do the following:\n```bash\ncd root/of/your/repo\ncd .git/hooks\ncp /path/to/irods_clang_format_configuration/pre-commit.template pre-commit\nchmod +x pre-commit\n```\n\nTo test, modify a C/C++ file and commit the changes. You should receive a message stating that you need to format your changes. Instructions for doing so will be provided. Once done, commit your changes and you're all set. The tool will only format the lines modified.\n\n## Notes\n- If you change the configuration, make sure to revert any formatting previously done. Not doing so could result in unexpected results.\n- Use `git clang-format \u003cbranch-or-sha-to-start-from\u003e` instead of `clang-format` so that only the modified files will be formatted.\n\n## Official Clang-Format 13 Documentation\n- [Home](http://releases.llvm.org/13.0.0/tools/clang/docs/ClangFormat.html)\n- [Style Options](http://releases.llvm.org/13.0.0/tools/clang/docs/ClangFormatStyleOptions.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firods%2Firods_clang_format_configuration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firods%2Firods_clang_format_configuration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firods%2Firods_clang_format_configuration/lists"}