Skip to content

Add *println to exception EXC0001 #1074

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 3 commits into from
May 9, 2020
Merged

Add *println to exception EXC0001 #1074

merged 3 commits into from
May 9, 2020

Conversation

cjkreklow
Copy link
Contributor

Exception EXC0001 ignores errors on functions like Sprint and Sprintf, but not Sprintln. Update the exception to include *println as well. This matches the default behavior of errcheck for fmt.*print*.

cjkreklow added 2 commits May 7, 2020 20:55
Exception EXC0001 ignores errors on functions like Sprint and Sprintf,
but not Sprintln. Update the exception to include *println as well.
Adding *println to EXC0001 breaks TestErrcheckNoIgnoreFmt. Updated the
config file to explicitly include EXC0001.
@CLAassistant
Copy link

CLAassistant commented May 8, 2020

CLA assistant check
All committers have signed the CLA.

Regenerate README with updated EXC0001 pattern.
Copy link
Contributor

@jirfag jirfag left a comment

Choose a reason for hiding this comment

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

thank you,
@ernado PTAL

@jirfag jirfag merged commit 3c2aa58 into golangci:master May 9, 2020
@cjkreklow cjkreklow deleted the errcheck/EXC0001 branch May 9, 2020 12:50
@ldez ldez added this to the v1.27 milestone Mar 6, 2024
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.

5 participants