Skip to content

Conversation

@mmorel-35
Copy link
Contributor

Description

Enable and fixes several go-critic rules

@mmorel-35 mmorel-35 changed the title chore: enable-all rules from go-critic chore: enable several rules from go-critic Aug 3, 2025
@mmorel-35 mmorel-35 force-pushed the gocritic branch 2 times, most recently from ccbf5bb to 70b2dad Compare August 3, 2025 22:12
@mmorel-35 mmorel-35 marked this pull request as ready for review August 3, 2025 22:14
@SuperQ
Copy link
Member

SuperQ commented Oct 6, 2025

Needs a rebase.

@SuperQ
Copy link
Member

SuperQ commented Oct 6, 2025

Looks like #1482 added a new lint issue. 😹

Signed-off-by: Matthieu MOREL <[email protected]>
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

Nice, thanks

@SuperQ SuperQ merged commit 3c2cec8 into prometheus:main Oct 6, 2025
6 checks passed
@mmorel-35 mmorel-35 deleted the gocritic branch October 6, 2025 15:30
Centaro0 pushed a commit to Centaro0/snmp-exporter that referenced this pull request Oct 11, 2025
* chore: enable-all rules from go-critic

Signed-off-by: Matthieu MOREL <[email protected]>

* chore: enable emptyStringTest rule from go-critic

Signed-off-by: Matthieu MOREL <[email protected]>

* chore: enable exposedSyncMutex rule from go-critic

Signed-off-by: Matthieu MOREL <[email protected]>

* chore: enable ifElseChain rule from go-critic

Signed-off-by: Matthieu MOREL <[email protected]>

* chore: enable nestingReduce rule from go-critic

Signed-off-by: Matthieu MOREL <[email protected]>

* chore: enable regexpMust rule from go-critic

Signed-off-by: Matthieu MOREL <[email protected]>

* chore: enable regexpSimplify rule from go-critic

Signed-off-by: Matthieu MOREL <[email protected]>

* chore: enable singleCaseSwitch rule from go-critic

Signed-off-by: Matthieu MOREL <[email protected]>

* chore: enable typeDefFirst rule from go-critic

Signed-off-by: Matthieu MOREL <[email protected]>

* chore: enable typeSwitchVar rule from go-critic

Signed-off-by: Matthieu MOREL <[email protected]>

* chore: enable unlambda rule from go-critic

Signed-off-by: Matthieu MOREL <[email protected]>

* fic paramTypeCombine

Signed-off-by: Matthieu MOREL <[email protected]>

---------

Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Centaro0 <[email protected]>
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