{"id":15050749,"url":"https://github.com/mattmassicotte/xclint","last_synced_at":"2025-07-29T05:32:37.856Z","repository":{"id":200127315,"uuid":"704879340","full_name":"mattmassicotte/XCLint","owner":"mattmassicotte","description":"Xcode project linting","archived":false,"fork":false,"pushed_at":"2025-05-24T09:53:02.000Z","size":154,"stargazers_count":127,"open_issues_count":9,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-28T21:18:32.925Z","etag":null,"topics":["lint","linter","linting","objective-c","spm","swift","xcode"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattmassicotte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["mattmassicotte"]}},"created_at":"2023-10-14T11:33:22.000Z","updated_at":"2025-06-10T09:30:14.000Z","dependencies_parsed_at":"2024-07-10T17:41:58.679Z","dependency_job_id":null,"html_url":"https://github.com/mattmassicotte/XCLint","commit_stats":null,"previous_names":["mattmassicotte/xclint"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mattmassicotte/XCLint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmassicotte%2FXCLint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmassicotte%2FXCLint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmassicotte%2FXCLint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmassicotte%2FXCLint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattmassicotte","download_url":"https://codeload.github.com/mattmassicotte/XCLint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmassicotte%2FXCLint/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267633670,"owners_count":24118777,"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-07-29T02:00:12.549Z","response_time":2574,"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":["lint","linter","linting","objective-c","spm","swift","xcode"],"created_at":"2024-09-24T21:29:11.950Z","updated_at":"2025-07-29T05:32:37.821Z","avatar_url":"https://github.com/mattmassicotte.png","language":"Swift","funding_links":["https://github.com/sponsors/mattmassicotte"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n[![Build Status][build status badge]][build status]\n[![Platforms][platforms badge]][platforms]\n\n\u003c/div\u003e\n\n# XCLint\nXcode project linting\n\nThis project is still pretty young, and has rough edges. However, it kinda works! So, please do give it a shot.\n\n## Installation\n\nXCLint is available as both a commandline tool and a library.\n\nTool:\n\n```\nbrew tap mattmassicotte/XCLint https://github.com/mattmassicotte/XCLint.git\nbrew install xclint\n```\n\nPackage:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/mattmassicotte/XCLint\", branch: \"main\")\n],\ntargets: [\n    .testTarget(name: \"MyTarget\", dependencies: [\"XCLinting\"]),\n]\n```\n\n## Tool Usage\n\nJust run the `xclint` binary in your project directory. Check out its `-h` flag for more usage.\n\n```\n# cd my/project\n# xclint\n```\n\nThis will run a default set of rules. But, you can customize its behavior with a `.xclint.yml` file. The basic structure borrows a lot from [SwiftLint](https://github.com/realm/SwiftLint).\n\n```yaml\n# Some rules may not be appropriate for all projects. You must opt-in those.\nopt_in_rules:\n  - embedded_build_setting    # checks for build settings in the project file\n  - groups_sorted             # checks that all group contents are alphabetically sorted\n  - implicit_dependencies     # checks for any schemes that have \"Find Implicit Dependencies\" enabled\n  - targets_use_xcconfig      # checks for any targets without a XCConfig file set\n  - projects_use_xcconfig     # checks for any projects without a XCConfig file set\n  - shared_scheme_skips_tests # checks for any shared schemes that have disabled tests\n  - shared_schemes            # checks that all targets have a shared scheme present\n\n# Other rules make sense for all projects by default. You must opt-out of those.\ndisabled_rules:\n  - build_files_ordered       # checks that the ordering of techincally-unordered collections Xcode writes out is preserved\n  - validate_build_settings   # checks that build settings have valid values\n  - relative_paths            # checks for any absolute file references\n```\n\n## Alternatives\n\nI was kind of hoping that some else had built something like this. And they have! However, none of the things I found are maintained any more.\n\n- [ProjLint](https://github.com/JamitLabs/ProjLint)\n- [XcodeProjLint](https://github.com/RocketLaunchpad/XcodeProjLint)\n- [xcprojectlint](https://github.com/americanexpress/xcprojectlint)\n\n## Contributing and Collaboration\n\nI'd love to hear from you! Get in touch via [mastodon](https://mastodon.social/@mattiem), an issue, or a pull request.\n\nI prefer collaboration, and would love to find ways to work together if you have a similar project.\n\nI prefer indentation with tabs for improved accessibility. But, I'd rather you use the system you want and make a PR than hesitate because of whitespace.\n\nBy participating in this project you agree to abide by the [Contributor Code of Conduct](CODE_OF_CONDUCT.md).\n\n[build status]: https://github.com/mattmassicotte/XCLint/actions\n[build status badge]: https://github.com/mattmassicotte/XCLint/workflows/CI/badge.svg\n[platforms]: https://swiftpackageindex.com/mattmassicotte/XCLint\n[platforms badge]: https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fmattmassicotte%2FXCLint%2Fbadge%3Ftype%3Dplatforms\n[documentation]: https://swiftpackageindex.com/mattmassicotte/XCLint/main/documentation\n[documentation badge]: https://img.shields.io/badge/Documentation-DocC-blue\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmassicotte%2Fxclint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattmassicotte%2Fxclint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmassicotte%2Fxclint/lists"}