Idean / sonar-swift

Open source Swift plugin for SonarQube (also supports Objective-C)
Other
895 stars 278 forks source link

Sonar Swift does not show Xcode warnings #100

Open pbernery opened 7 years ago

pbernery commented 7 years ago

Xcode provides several thoughtful warnings that could be useful to improve source code. While they are already displayed in Xcode, it could be interesting to have them displayed in Sonar.

Any thoughts?

radimhalfar commented 6 years ago

Possibly xcpretty can report the build errors / warnings using junit according to https://github.com/supermarin/xcpretty#reporters. Another options is to use xcodebuild with -quiet option. Would it be helpful ? I am not aware of the usage of junit report, however xcpretty is set as one of the prerequisities thus I hope it might work well in this case.

yaalisri commented 6 years ago

Is it possible to get the Xcode compiled warnings in SonarQube dashboard using sonar swift?

PSchu commented 6 years ago

As i understand sonarQube, the biggest problem with this is that all sonarQube issues need to be known by the serverPlugin. So every addition like an update of swiftlint/tailor or adding the Xcode warnings needs also an update of the plugin.

This makes this possibly a lot of work

AyaAkl25 commented 6 years ago

Is this will be developed? I really need to add support for adding xcode warnings to SonarQube Integrations.

davidy4ng commented 5 years ago

As of now, adding coding rules still requires a plugin update.

https://docs.sonarqube.org/latest/extend/adding-coding-rules/

I don't think this feature is possible as of today.