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

Infer扫描结果同步到SonarQube,结果与本地不一致 #26

Closed leron1989 closed 2 years ago

leron1989 commented 2 years ago

hello,Mac端Infer扫描结果同步到SonarQube后,结果与本地不一致,比如【UNSAFE_CALL_TO_OPTIONAL_METHOD】错误类型就没有同步过去。 profile-infer.xml文件中也没有【UNSAFE_CALL_TO_OPTIONAL_METHOD】规则的配置。 麻烦帮忙看看是啥原因哈,谢谢~

sydowma commented 2 years ago

我查了下,这个UNSAFE_CALL_TO_OPTIONAL_METHOD规则应该是有引入的。

  1. 你看下现在OC语言对应到的是哪个规则集?
  2. 看下这个规则集合有没有启用,尝试切换下规则集试试
leron1989 commented 2 years ago

确实是有部分规则没有激活,感谢~~