Skip to content

feat: add duplication linter (dupl) to golangci configuration#152

Merged
d0ugal merged 1 commit intomainfrom
feat/add-duplication-linter
Oct 29, 2025
Merged

feat: add duplication linter (dupl) to golangci configuration#152
d0ugal merged 1 commit intomainfrom
feat/add-duplication-linter

Conversation

@d0ugal
Copy link
Copy Markdown
Owner

@d0ugal d0ugal commented Oct 29, 2025

Summary

Adds the dupl linter to detect duplicate code fragments in the codebase.

Changes

  • Enable dupl linter in golangci configuration
  • Set threshold to 100 tokens (more sensitive than default 150)
  • Helps identify code that can be refactored to reduce duplication

Benefits

  • Improves code maintainability by identifying duplicate code
  • Reduces technical debt through better code organization
  • Encourages refactoring of repeated patterns

Testing

  • Linter runs successfully with no duplication issues detected
  • All other linters continue to pass

- Enable dupl linter to detect duplicate code fragments
- Set threshold to 100 tokens (more sensitive than default 150)
- Helps identify code that can be refactored to reduce duplication
@d0ugal d0ugal merged commit 221d8b4 into main Oct 29, 2025
7 checks passed
@d0ugal d0ugal deleted the feat/add-duplication-linter branch October 29, 2025 22:25
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