Idean / sonar-swift

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

Sonar scanner fails on unknown SwiftLint rule #245

Open Jenkins-Teleboy opened 5 years ago

Jenkins-Teleboy commented 5 years ago

[Regression] issue #35 Warnings instead of errors for unsupported SwiftLint rules

New Issue Checklist

 
The rule 'SwiftLint:reduce_boolean' does not exist.
ERROR - Command 'sonar-scanner -X' failed with error code: 2
Sonar Scanner executed by sh run-sonar-swift.sh 
Not using fastlane. 

found Issue #35, but seems the fix is currently not active. 

Environment

  SonarQube Swift Plugin 0.4.5
SwiftLint 0.34.0
SonarQube 7.3
gaelfoppolo commented 5 years ago

The fix is not applicable this part of the code changed too much. However we could apply the same logic to catch the error and display a warning instead. Could you provide a PR with that fix?

Jenkins-Teleboy commented 5 years ago

Thank you for your reply. I will give it a try.