というように-reporter json-compilation-databaseを指定してテストを動かすと、compile_commands.jsonファイルを生成してくれます。 このファイルはビルドコマンドやファイル等がまとまってるだけで、これをOCLintに読み込ませてLint結果を取得するoclint-json-compilation-database というコマンドが用意されています。(OCLintに) シェルスクリプトにまとめると以下のような感じです。 #!/bin/sh OCLINT_HOME=~/local/oclint/bin export PATH=$OCLINT_HOME/bin:$PATH xctool -reporter json-compilation-database:compile_commands.json clean xctool -reporter j
![Objective-CのLintツールについて – xctoolとOCLintの連携方法](https://cdn-ak-scissors.b.st-hatena.com/image/square/b26f7dc8f9e783316f720174980e93c627438d74/height=288;version=1;width=512/https%3A%2F%2Fefcl.info%2Fpublic%2Ffavicon.png)