Idean / sonar-swift

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

Can we create custom rules/percentages for rules #92

Closed MaikoHermans closed 7 years ago

MaikoHermans commented 7 years ago

So we are currently setting up a new rules within the company like:

By default the file length rule is to be less then about 400 lines of code

However we want to set our own values for these rules. can we do this someway in sonarqube? if so how can this be achieved?

pbernery commented 7 years ago

Check the SonarQube documentation for that, or maybe SwiftLint if you delegate this rule to it. sonar-swift only runs the tools and aggregates the reports from these. They must be configured by yourself depending on your project.

I close this ticket as this is probably not related to sonar-swift. Feel free to reopen it if I am mistaken.