Files
odo/.sonarcloud.properties
Philippe Martin ebe003ede0 Serve UI from api server (#6954)
* Serve UI from api server

* Build UI static files + check generation with GHAction

* Update UI static files

* Use specific commit for verify-changed-files action

* Add pkg/apiserver-impl/ui to .gitattributes

* Ignore pkg/apiserver-impl/ui/** for sonar
2023-07-07 07:07:14 -04:00

31 lines
1.3 KiB
Properties

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