Skip to content
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

fix: Remove gomnd from golangci linters #1210

Merged
merged 1 commit into from
Jan 10, 2025
Merged

fix: Remove gomnd from golangci linters #1210

merged 1 commit into from
Jan 10, 2025

Conversation

timraymond
Copy link
Member

This linter causes more harm than good, encouraging practices that actively obfuscate simple values whose meaning could be derived from context. Since it has no context-awareness, it flags everything from file modes, to obvious iteration counters as "magic numbers." This determination is fairly straightforward for a reviewer to make by hand, and it comes up relatively infrequently. The best course of action, until a better (probably LLM-based) magic number detector can be found.

This linter causes more harm than good, encouraging practices that
actively obfuscate simple values whose meaning could be derived from
context. Since it has no context-awareness, it flags everything from
file modes, to obvious iteration counters as "magic numbers." This
determination is fairly straightforward for a reviewer to make by hand,
and it comes up relatively infrequently. The best course of action,
until a better (probably LLM-based) magic number detector can be found.
@timraymond timraymond requested a review from a team as a code owner January 10, 2025 19:01
@timraymond timraymond changed the title Remove gomnd from golangci linters fix: Remove gomnd from golangci linters Jan 10, 2025
Copy link
Collaborator

@rbtr rbtr left a comment

Choose a reason for hiding this comment

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

llmnd? 😅

@timraymond timraymond added this pull request to the merge queue Jan 10, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 10, 2025
@nddq nddq added this pull request to the merge queue Jan 10, 2025
Merged via the queue into main with commit 0c55e1d Jan 10, 2025
27 of 28 checks passed
@nddq nddq deleted the traymond/disable-mnd branch January 10, 2025 23:36
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.

3 participants