rolyatwilson / xlint

XCode project file linter with Gerrit integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xlint

Gem Version Build Status Code Climate Coverage Status Dependency Status

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.

How does it work?

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.

Limitations

Xlint currently only detects changes to the deployment target within Xcode .pbxproj files.

Installation

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.

Usage

Xlint requires patchset changes be saved to a file and the filepath passed to Xlint as a command-line argument.

Example

git diff HEAD~1 HEAD > changes.diff
xlint changes.diff

About

XCode project file linter with Gerrit integration

License:Apache License 2.0


Languages

Language:Ruby 100.0%