Skip to content

checkers/dupArg: add more patterns #1466

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

Merged
merged 2 commits into from
Mar 18, 2025

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