Skip to content

chore: remove dead dupl exclusion and add warn-unused#631

Open
isaacschepp wants to merge 1 commit intomainfrom
chore/remove-dead-dupl-exclusion
Open

chore: remove dead dupl exclusion and add warn-unused#631
isaacschepp wants to merge 1 commit intomainfrom
chore/remove-dead-dupl-exclusion

Conversation

@isaacschepp
Copy link
Copy Markdown
Collaborator

Summary

  • Remove dupl from the test-file exclusion list — it was never enabled as a linter, so the rule had no effect
  • Add warn-unused: true to the exclusions section so golangci-lint warns about dead exclusion rules in the future

Fixes #378

Test plan

  • Verify .golangci.yml no longer references dupl in exclusions
  • Verify warn-unused: true is present in the exclusions section
  • Confirm no functional change — dupl was never enabled, so removing its exclusion changes nothing

Remove `dupl` from the test-file exclusion list — it was never enabled
as a linter, so the exclusion had no effect. Add `warn-unused: true` to
the exclusions section so golangci-lint warns about dead exclusion rules
in the future.

Fixes #378
@isaacschepp isaacschepp added the tooling Infrastructure, workflow, and developer tools label Apr 2, 2026
Copilot AI review requested due to automatic review settings April 2, 2026 21:01
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying genealogix with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2bf097d
Status: ✅  Deploy successful!
Preview URL: https://dfeae2dc.genealogix.pages.dev
Branch Preview URL: https://chore-remove-dead-dupl-exclu.genealogix.pages.dev

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR cleans up the Go lint configuration by removing a linter exclusion that could never take effect and enabling detection of future “dead” exclusions in .golangci.yml.

Changes:

  • Removed dupl from the _test\.go exclusion rule since dupl isn’t enabled.
  • Added warn-unused: true under linters.exclusions to surface unused exclusion rules going forward.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling Infrastructure, workflow, and developer tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

golangci-lint: remove dead dupl exclusion from test rules

2 participants