Skip to content

Commit c45cac9

Browse files
koriymclaude
andcommitted
Exclude demo folder from SonarCloud analysis
Add demo/** to sonar.exclusions to prevent false positive warnings about code duplication in example/demonstration code. The demo folder contains sample code that intentionally shows similar patterns across multiple files for educational purposes. Code duplication in demos is expected and not a quality issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 016b4ed commit c45cac9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.sonarcloud.properties

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
# Exclude GitHub workflow files from security hotspot analysis
2-
sonar.exclusions=.github/workflows/**
1+
# Exclude files from SonarCloud analysis
2+
# - GitHub workflow files: version tags are best practice
3+
# - Demo files: example code with intentional duplication for demonstration
4+
sonar.exclusions=.github/workflows/**,demo/**

0 commit comments

Comments
 (0)