Skip to content

chore: exclude test files from Codacy duplication - #170

Merged
danielsitek merged 1 commit into
mainfrom
feature/dsi-codacy-duplication-exclusions
Oct 23, 2026
Merged

danielsitek merged 1 commit into
mainfrom
feature/dsi-codacy-duplication-exclusions

Conversation

@danielsitek

Copy link
Copy Markdown
Owner

Summary

  • Exclude every current test file from the Codacy duplication engine using full repository-relative paths.
  • Add a local test that fails if a test file is added or removed without updating the list.
  • Leave global exclusions, ESLint, security analysis, coverage, and local tests unchanged.

Verification

  • bun test scripts/codacy-config.test.ts
  • bun run check (762 passed, 1 skipped; build and compiled smoke passed)
  • Codacy baseline on main: 26% duplicated files; the updated main percentage must be verified after merge and main reanalysis.

Closes #161

@codacy-production

codacy-production Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Coverage ∅ diff coverage · +0.00% coverage variation

Metric Results
Coverage variation ✅ +0.00% coverage variation (-1.00%)
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (b9cd339) 7762 7602 97.94%
Head commit (c13ccc6) 7762 (+0) 7602 (+0) 97.94% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#170) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@danielsitek
danielsitek merged commit 22d8fc6 into main Oct 23, 2026
11 checks passed
@danielsitek
danielsitek deleted the feature/dsi-codacy-duplication-exclusions branch October 23, 2026 06:35
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.

Exclude test files from Codacy duplication metrics

1 participant