-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add 'gas' for security problems scanning #830
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ func loadStrategies(strategiesFile string) (*strategies, error) { | |
if strategiesFile == "" { | ||
return nil, nil | ||
} | ||
bytes, err := ioutil.ReadFile(strategiesFile) | ||
bytes, err := ioutil.ReadFile(strategiesFile) /* nolint #nosec , this comes from an admin, not user */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why does this require linter directives? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The theory behind it is that |
||
if err != nil { | ||
return nil, errors.Wrap(err, "Failed to open strategies file") | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still not clear why we need the extra makefile targets instead of rolling it up into the main
install
andlint
(extra targets increase noise / entropy)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
install
is quite clean, doing only aglide install
. It does delegate the installation of the dependent tool (glide
) to a separate target, so, there's a precedent :-)About
gas
getting called directly fromlint
, I guess it's a matter of taste. When working on fixing the warnings provided bygas
, I find it easier to run it in isolation asmake gas
.