1

コマンドラインから警告、エラー、構文コーディング規則、循環的複雑度のリストを取得しようとしています。私の目的にはoclintを使用できることがわかりました。しかし、私は問題に遭遇しました

私がやろうとしたこと。

xcodebuild -project testing.xcodeproj -target "testing" -configuration "Debug" -destination "platform=iOS Simulator,name=iPad" -sdk "iphonesimulator7.0" -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=8 clean
xcodebuild -project testing.xcodeproj -target "testing" -configuration "Debug" -destination "platform=iOS Simulator,name=iPad" -sdk "iphonesimulator7.0" -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=8 build |tee xcodebuild.log

oclint-xcodebuild xcodebuild.log

ここまではすべてうまくいき、compile_commands.json も正しく作成されました。

しかし、実行するとoclint-json-compilation-database、このエラーが発生します。

上記のコマンドが成功した後に使用する必要があることをhereから読みましたoclint [-enable-clang-static-analyzer]

誰かがこれを解決する方法を知っているか、私の要件に対するより良い解決策を持っている場合は教えてください

編集:使用するclint [-enable-clang-static-analyzer -R /usr/lib/oclint/rules ]と、エラーが発生しますoclint: error: cannot find dynamic library for report type: text

4

1 に答える 1