-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rules): improve rule dx (#1516)
- Loading branch information
Showing
8 changed files
with
84 additions
and
5 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
13 changes: 13 additions & 0 deletions
13
e2e/flags/.snapshots/TestNoExternalRuleDir-report-dataflow
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,13 @@ | ||
|
||
|
||
Security Report | ||
|
||
===================================== | ||
|
||
Zero rules found. A security report requires rules to function. Please check configuration. | ||
|
||
|
||
-- | ||
Analyzing codebase | ||
Error: report error: 0 rules found for supported language, default rules could not be downloaded or possibly disabled without using --external-rule-dir | ||
|
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,36 @@ | ||
|
||
|
||
Security Report | ||
|
||
===================================== | ||
|
||
Rules: | ||
Language Default Rules Custom Rules Files | ||
Ruby 0 1 1 | ||
|
||
|
||
HIGH: Ruby logger [CWE-42] | ||
To ignore this finding, run: bearer ignore add fa5e03644738e4c17cbbd04a580506b1_0 | ||
|
||
File: e2e/flags/testdata/simple/main.rb:1 | ||
|
||
1 logger.info("user info", user.email) | ||
===================================== | ||
|
||
1 checks, 1 findings | ||
|
||
CRITICAL: 0 | ||
HIGH: 1 (CWE-42) | ||
MEDIUM: 0 | ||
LOW: 0 | ||
WARNING: 0 | ||
|
||
Need help or want to discuss the output? Join the Community https://discord.gg/eaHZBJUXRF | ||
|
||
Retain state and manage your findings directly on Bearer Cloud. Learn more at https://docs.bearer.com/guides/bearer-cloud/ | ||
|
||
|
||
-- | ||
Analyzing codebase | ||
Warning: rule IDs bar,foo given to be skipped but were not found | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
logger.info("ok") |
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