Skip to content

Commit

Permalink
sonar: exclude test files from analysis (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedib0t committed Oct 28, 2023
1 parent 63a8784 commit 20e0a8e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .sonarcloud.properties
@@ -0,0 +1,15 @@
# Path to sources
sonar.sources=.
sonar.exclusions=**/*_test.go
sonar.inclusions=

# Path to tests
sonar.tests=.
sonar.test.exclusions=**/*_test.go
sonar.test.inclusions=

# Source encoding
sonar.sourceEncoding=UTF-8

# Exclusions for copy-paste detection
sonar.cpd.exclusions=**/*_test.go

0 comments on commit 20e0a8e

Please sign in to comment.