Xlint is command-line tool for linting XCode project files and posting comments on a Gerrit review from a CI environment. We developed this gem because its really easy to change the deployment target of an app and have the change be missed in the code review process. Xlint sees these changes and provides inline comments in the Gerrit review.
Xlint parses the changes in a patchset, and runs each change through a validator. If the validator detects any issues, a Gergich comment is created. After all the changes have been checked, Xlint publishes the Gergich comments to Gerrit.
Xlint currently only detects changes to the deployment target within Xcode .pbxproj files.
Gergich and Gerrit must be configured as defined in the Gergich gem. If
Gergich works, then all you need to do is gem install xlint
and Xlint
is ready for linting.
Xlint requires patchset changes be saved to a file and the filepath passed to Xlint as a command-line argument.
git diff HEAD~1 HEAD > changes.diff
xlint changes.diff