Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonar scanner fails on unknown SwiftLint rule #245

Open
Jenkins-Teleboy opened this issue Aug 25, 2019 · 2 comments
Open

Sonar scanner fails on unknown SwiftLint rule #245

Jenkins-Teleboy opened this issue Aug 25, 2019 · 2 comments
Labels

Comments

@Jenkins-Teleboy
Copy link

[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
Copy link
Collaborator

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
Copy link
Author

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

MediaComputing pushed a commit to teleboy/sonar-swift that referenced this issue Sep 1, 2019
MediaComputing pushed a commit to teleboy/sonar-swift that referenced this issue Sep 1, 2019
…re/TBD1_245_integration_branch

* feature/245_support_unknown_swiftLint_rules:
  Idean#245 fixed bug that unknown rules led to an error. Now, unknown rules are ignored.
Branlute added a commit to steamulo/sonar-swift that referenced this issue May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants