Skip to content

Honor ignore files and exclude tests from scans#5

Merged
aksOps merged 5 commits into
mainfrom
feat/ignore-files-test-exclusions
Jul 4, 2026
Merged

Honor ignore files and exclude tests from scans#5
aksOps merged 5 commits into
mainfrom
feat/ignore-files-test-exclusions

Conversation

@aksOps

@aksOps aksOps commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Parse .gitignore, .ignore, and .git/info/exclude during scans.
  • Add opt-in --exclude-tests support for scan and diff.
  • Add default test-file patterns for Java, Python, TypeScript/JavaScript, Go, and Rust.

Verification

  • go test ./... -count=1
  • go vet ./...
  • go build -trimpath -o /tmp/scanner ./cmd/scanner
  • staticcheck ./...
  • gosec -quiet -exclude=G204,G304,G401,G505 ./...
  • sonar predictor: no MAJOR+ issues
  • CLI scenario verified --exclude-tests drops test warnings and counts skipped files

Tag pushed: 0.0.1-1

Note: direct push to main was rejected by branch protection, so this follows the protected-branch PR path.

@sonarqubecloud

sonarqubecloud Bot commented Jul 4, 2026

Copy link
Copy Markdown

@aksOps aksOps merged commit afb3499 into main Jul 4, 2026
16 checks passed
@aksOps aksOps deleted the feat/ignore-files-test-exclusions branch July 4, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant