Skip to content

gosec ignores excludes section in golangci.yml #2057

Closed Answered by ldez
dimshush asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

The content of the field text is a regular expression, then G[104,401,404,501,505] means the letter G followed by one character in the group 104,401,404,501,505 (ie: 0145,)

https://regex101.com/r/SkTivv/1

The right expression is G(104|401|404|501|505)

https://regex101.com/r/U2Kerh/1

Also enable or disable a rule for gosec, you can do it in the gosec dedicated section: https://golangci-lint.run/usage/linters/#gosec

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dimshush
Comment options

@ldez
Comment options

@dimshush
Comment options

Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants