Skip to content

Commit

Permalink
chore(sonarqube): exclude specific rules from specific files
Browse files Browse the repository at this point in the history
- ignore rule `typescript:S905` on ts and tsx files
  • Loading branch information
SimonGolms committed Nov 15, 2022
1 parent fb2fa5c commit 68e162a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ sonar.issue.ignore.multicriteria.e1.ruleKey=typescript:S4123
sonar.issue.ignore.multicriteria.e1.resourceKey=**/*test.ts
sonar.issue.ignore.multicriteria.e2.ruleKey=typescript:S4123
sonar.issue.ignore.multicriteria.e2.resourceKey=**/*test.tsx
# Skip false positive rule 'Non-empty statements should change control flow or have at least one side-effect' on typescript files,
# since current sonarqube instance (v8.2) is outdated and not compatible with latest ECMAScript
sonar.issue.ignore.multicriteria.e3.ruleKey=typescript:S905
sonar.issue.ignore.multicriteria.e3.resourceKey=**/*.ts
sonar.issue.ignore.multicriteria.e4.ruleKey=typescript:S905
sonar.issue.ignore.multicriteria.e4.resourceKey=**/*.tsx

0 comments on commit 68e162a

Please sign in to comment.