Skip to content

Conversation

alingse
Copy link
Contributor

@alingse alingse commented Mar 18, 2025

I'm implement some repeat-args checker, I occurly find it has already implememnt in go-critic's dupArg

I add some new functions that should not call with dup args.

btw, I will create another dupOption checker PR this week later. see testcase

Signed-off-by: alingse <alingse@foxmail.com>
Copy link
Member

@cristaloleg cristaloleg left a comment

Choose a reason for hiding this comment

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

great addition, thanks!

@cristaloleg cristaloleg changed the title Add more dupArg methods checkers/dupArg: add more patterns Mar 18, 2025
@cristaloleg
Copy link
Member

Can you re-run go generate ./... please? (and commit the changed files).

Signed-off-by: alingse <alingse@foxmail.com>
@cristaloleg cristaloleg merged commit 7b2227a into go-critic:master Mar 18, 2025
2 checks passed
@cristaloleg
Copy link
Member

Thanks again!

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