-
-
Notifications
You must be signed in to change notification settings - Fork 684
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the option for checks to emit only warning messages. Checks that are included in the go_checker target now fail builds. The only way to change this behavior is to remove the check from go_checker so that it does not run at compile time.
- Loading branch information
Showing
10 changed files
with
52 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
{ | ||
"return_bool_check": { | ||
"severity": "WARNING", | ||
"whitelist": { | ||
"return_bool/*": "security-reviewed functions that safely return bool" | ||
} | ||
}, | ||
"import_fmt_check": { | ||
"severity": "WARNING", | ||
"apply_to": { | ||
"return_bool/*": "" | ||
"has_errors\\.go": "" | ||
} | ||
}, | ||
"return_bool_check": { | ||
"whitelist": { | ||
"has_.*\\.go": "security-reviewed functions that safely return bool" | ||
} | ||
}, | ||
"foo_func_check": { | ||
"description": "no exemptions since we know this check is 100% accurate", | ||
"severity": "ERROR" | ||
"description": "no exemptions since we know this check is 100% accurate" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package haserrors | ||
|
||
import ( | ||
_ "fmt" // This should fail import_fmt_check | ||
) | ||
|
||
func Foo() bool { // This should fail foo_func_check | ||
return true // This should fail return_bool_check | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.