Skip to content

Conversation

andyleap
Copy link
Contributor

@andyleap andyleap commented Mar 8, 2018

The current hardcoded credentials rule fails to handle #nosec comments in const decl blocks, like

const (
    Token = "qw12r4jjwq1rdvsp" //#nosec
)

This change allows this to be handled by the existing analyzer ignore system.

@gcmurphy
Copy link
Member

gcmurphy commented Mar 8, 2018

Thanks. Nice pickup.

@gcmurphy gcmurphy merged commit f3c8d59 into securego:master Mar 8, 2018
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