sonar-next / sonar-swift

sonar-swift.SonarQube iOS Plugin, Support Objective-C/Swift/Java, Support import Infer Issue (SonarQube iOS 代码扫描插件,支持 Objective-C 和 Swift / Java,支持 Infer 结果导入 ) base on https://github.com/Idean/sonar-swift
Other
221 stars 39 forks source link

`run-sonar.sh` 脚本支持 infer #2

Open sydowma opened 3 years ago

sydowma commented 3 years ago

Feature Request

run-sonar.sh 脚本增加对 infer 工具的支持,现在支持 OCLint/Lizard/Swiftlint,缺少 Infer

Motivation Behind Feature

Feature Description

执行Infer的命令为

infer -- run [--skip-analysis-in-path path] --compilation-database compile_commands.json

compile_commands.json 是 xcpretty 对 xcodebuild 的 log 转化为的 json 文件内容。 --skip-analysis-in-path path 是需要过滤的目录,相对路径

Alternatives or Workarounds