Chore: revise some of the gosec rules (#16713)

This commit is contained in:
Oleg Gaidarenko
2019-05-01 11:36:02 +02:00
committed by Carl Bergquist
parent 51a98565dc
commit c1289b308f
4 changed files with 11 additions and 3 deletions
+4 -1
View File
@@ -39,4 +39,7 @@ exit_if_fail go vet ./pkg/...
exit_if_fail revive -formatter stylish -config ./scripts/revive.toml
# TODO recheck the rules and leave only necessary exclusions
#exit_if_fail gosec -quiet -exclude=G104,G107,G201,G202,G204,G301,G302,G304,G402,G501,G505,G401 ./pkg/...
# exit_if_fail gosec -quiet \
# -exclude=G104,G107,G201,G202,G204,G301,G304,G401,G402,G501 \
# -conf=./scripts/gosec.json \
# ./pkg/...
+4
View File
@@ -0,0 +1,4 @@
{
"G302": "0660",
"G301": "0755"
}