Sydow

Results 29 comments of Sydow

Please give more details like report file type or website page. 请给予更多的信息,比如报告的文件格式是什么

I implemented the Objective-C language duplication based on this repo. https://github.com/tal-tech/sonar-swift

1. sonar-scanner 加一个-X 看一下详细的日志 2. 对照一下文件或者规则名,看是不是漏了一些规则

> 报错信息如下: ERROR: Error during SonarScanner execution java.lang.IllegalStateException: Unable to load components interface org.sonar.api.batch.sensor.Sensor > > Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ClassRealm{swift}-com.backelite.sonarqube.commons.surefire.SurefireSensor': Resolution of declared constructors on...

Thank you for your message. I'll add it to the README.md file bottom.

@LynahZ 可以的,创建一个新的规则集合(选择从现有的规则集copy),然后把不需要的规则去除,然后应用到项目。

1. 你要扫描的是 swift 语言? 2. 贴一下执行 swiftlint 的命令 3. 贴一下 执行扫描的命令

1. 如果只扫描 swift 不用执行 xcodebuild 2. 如果需要扫描 OC ,请提前执行下 infer ,参考下文档的命令。 3. 从你的结果来看,像是路径问题,你把 swiftlint.txt 放在当前目录下试试,去掉 swiftlint 这一层

> 去掉了也不行,还是报WARN: file not included in sonar 执行 sonar-scanner 里加一个 `-X`,然后发一下 `WARN: file not included in sonar` 这个详细日志