Skip to content

chore: disabled goconst linter#271

Merged
fredbi merged 1 commit into
go-openapi:masterfrom
fredbi:chore/disable-goconst-linter
Jun 22, 2026
Merged

chore: disabled goconst linter#271
fredbi merged 1 commit into
go-openapi:masterfrom
fredbi:chore/disable-goconst-linter

Conversation

@fredbi

@fredbi fredbi commented Jun 22, 2026

Copy link
Copy Markdown
Member

goconst has been "improved" lately and has actually become too noisy. It used to be useful, but now it is just trying to nudge us into transforming every thing into a const. This is not really helping our codebase.

We disable it entirely until we find a way to figure out more effective settings for this linter.

Change type

Please select: 🆕 New feature or enhancement|🔧 Bug fix'|📃 Documentation update

Short description

Fixes

Full description

Checklist

  • I have signed all my commits with my name and email (see DCO. This does not require a PGP-signed commit
  • I have rebased and squashed my work, so only one commit remains
  • I have added tests to cover my changes.
  • I have properly enriched go doc comments in code.
  • I have properly documented any breaking change.

goconst has been "improved" lately and has actually become too noisy.
It used to be useful, but now it is just trying to nudge us into
transforming every thing into a const. This is not really helping our
codebase.

We disable it entirely until we find a way to figure out more
effective settings for this linter.

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.50%. Comparing base (a8a2d74) to head (1914f2d).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #271   +/-   ##
=======================================
  Coverage   86.50%   86.50%           
=======================================
  Files          18       18           
  Lines        2467     2467           
=======================================
  Hits         2134     2134           
  Misses        230      230           
  Partials      103      103           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@fredbi fredbi merged commit 64c4277 into go-openapi:master Jun 22, 2026
23 checks passed
@fredbi fredbi deleted the chore/disable-goconst-linter branch June 22, 2026 06:09
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