forked from redhat-developer/odo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.sonarcloud.properties
30 lines (24 loc) · 1.29 KB
/
.sonarcloud.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
sonar.projectKey=redhat-developer_odo
sonar.organization=redhat-developer
# Path to sources
sonar.sources=cmd,pkg
# Source File Exclusions: Patterns used to exclude some source files from analysis.
sonar.exclusions=**/*_test.go,pkg/apiserver-impl/ui/**
# Source File Inclusions : Patterns used to include some source files and only these ones in analysis.
# sonar.inclusions=
# Path to tests
sonar.tests=tests,cmd,pkg
# Test File Inclusions: Patterns used to include some test files and only these ones in analysis.
sonar.test.inclusions=**/*_test.go
# List of file path patterns to be excluded from analysis of Go files.
sonar.go.exclusions=**/vendor/**
# List of suffixes for files to analyze.
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,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