Skip to content

fix: exclude oem/smc ikvm/memoryhealthcomp from dupl lint - #39

Merged
mikemrm merged 1 commit into
mainfrom
mrm/fix-dupl-lint
Aug 7, 2026
Merged

fix: exclude oem/smc ikvm/memoryhealthcomp from dupl lint#39
mikemrm merged 1 commit into
mainfrom
mrm/fix-dupl-lint

Conversation

@mikemrm

@mikemrm mikemrm commented Aug 7, 2026

Copy link
Copy Markdown

Summary

The Lint check on main is failing (run 31184342724) with 2 dupl findings: oem/smc/ikvm.go and oem/smc/memoryhealthcomp.go are flagged as duplicates of each other.

These two upstream files were already near-identical boilerplate; the WithContext transformation added ~12 identical lines to each, pushing the pair over the dupl threshold of 200 tokens. Since mechanically transformed resource files shouldn't be hand-edited (//nolint comments would be a conflict magnet on every upstream sync), this excludes the pair from dupl in .golangci.yaml — same pattern as the existing gocritic.importShadow accommodation.

Verification

  • golangci-lint run (v2.6.2, matching CI) over the full repo: 0 issues
  • golangci-lint config verify (v2.6.2): passes

🤖 Generated with Claude Code

The WithContext transformation adds identical boilerplate to these two
already near-duplicate upstream files, pushing the pair over the dupl
threshold. Exclude them in config rather than hand-editing transformed
files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mikemrm
mikemrm merged commit 8f64b0a into main Aug 7, 2026
2 checks passed
@mikemrm
mikemrm deleted the mrm/fix-dupl-lint branch August 7, 2026 14:07
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.

2 participants