insideapp-oss / sonar-apple

SonarQube plugin for Swift / Objective-C
Other
97 stars 2 forks source link

SwiftLint part seem haven't scan for any files #65

Closed leungping closed 1 year ago

leungping commented 1 year ago

15:32:53.579 INFO: Sensor SwiftLint Sensor [sonarapple] 15:32:53.580 INFO: Sensor SwiftLint Sensor [sonarapple] (done) | time=1ms

seem SwiftLint doesn't scan any file with no result

However, Swift Sensor [sonarapple] logged with done and execute for 30000ms.

Any configuration missed will make SwiftLint does not work?

gaelfoppolo commented 1 year ago

Hi @leungping,

The plugin runs SwftLint tool using the sources (sonar.sources) defined in the sonar-project.properties. Maybe this is the issue here. Can you share your sonar-project.properties ? Also, can you run again your sonar-scanner command by adding the argument -X and share the SwiftLint log part? This argument will add debug logs.

If possible, can you reformat your issue to follow the bug report template?

leungping commented 1 year ago

thx, it solved. since your properties example mentioned sonar.source defaults to "." . i just comment this property. i think it should be the cause. Thanks!