Skip to content

Improvement/add more linters #2045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 34 commits into
base: develop
Choose a base branch
from

Conversation

Saurabh2402
Copy link

@Saurabh2402 Saurabh2402 commented Jul 23, 2025

🔍 Add More Linting Rules and Apply Code Quality Fixes:

Step3 towards #2029

Changes Made

🛠️ New Linters Added

  1. govet: Enhanced Go vet analysis for detecting suspicious constructs
  2. gocritic: Advanced static analysis with performance and style checks
  3. whitespace: Enforces consistent whitespace usage
  4. mirror: Detects wrong mirror usage of bytes/strings usage
  5. unconvert: Removes unnecessary type conversions
  6. usestdlibvars: Suggests using standard library constants instead of hardcoded values
  7. misspell: Catches common spelling mistakes (configured for UK locale)
  8. tagalign: Ensures consistent struct tag alignment
  9. thelper: Validates proper usage of t.Helper() in test functions

Possible bugs found and fixed:

Maintainer's Review Needed: @motatoes

  1. Return Error variable: Link, Link

🔄 Branch Synchronization

Synced with base linting setup PR(#2042) to prevent merge conflicts since it would get merged first.

- mirror
- unconvert
- usestdlibvars
- misspell
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