Add rule exclusion for tests//component.go
@@ -19,8 +19,12 @@ sonar.go.exclusions=**/vendor/**
sonar.go.file.suffixes=.go
# Ignore Issues on Multiple Criteria : Patterns to ignore issues on certain components and for certain coding rules.
-sonar.issue.ignore.multicriteria=g1
+sonar.issue.ignore.multicriteria=g1,g2
# Ignore "Define a constant instead of duplicating this literal" rule on test files
sonar.issue.ignore.multicriteria.g1.ruleKey=go:S1192
sonar.issue.ignore.multicriteria.g1.resourceKey=**/*_test.go
+
+# Ignore "Define a constant instead of duplicating this literal" rule on all the files under tests/integration
+sonar.issue.ignore.multicriteria.g2.ruleKey=go:S1192
+sonar.issue.ignore.multicriteria.g2.resourceKey=tests/integration/*.go
