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 linting issues exposed by linter upgrades #98

Merged
merged 2 commits into from
Nov 9, 2021

Conversation

atc0005
Copy link
Owner

@atc0005 atc0005 commented Nov 9, 2021

Changes

Ignore false-positive gosec G307 linting errors

  • Issues reported after upgrading golangci-lint to v1.43.0.
  • gosec was updated in that version from v2.8.1 to v2.9.1.

Ignore gocritic regexp.Compile() linting error

I am already checking for the regex compile error and immediately returning the error if it occurs. I expect that the error wrapping I am providing will be more readable to users than an intentional panic induced
stack trace would be.

References

Issues reported after upgrading golangci-lint to v1.43.0.
gosec was updated in that version from v2.8.1 to v2.9.1.

refs #97
refs golangci/golangci-lint#2299
I am already checking for the regex compile error and
immediately returning the error if it occurs. I expect
that the error wrapping I am providing will be more
readable to users than an intentional panic induced
stack trace would be.

refs GH-96
@atc0005 atc0005 added bug Something isn't working linting labels Nov 9, 2021
@atc0005 atc0005 added this to the Next Release milestone Nov 9, 2021
@atc0005 atc0005 self-assigned this Nov 9, 2021
@atc0005 atc0005 merged commit 3edbdf2 into master Nov 9, 2021
@atc0005 atc0005 deleted the fix-linting-issues-exposed-by-linter-upgrades branch November 9, 2021 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linting
Projects
None yet
1 participant