-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: STFT-076: Secureli ignore - ability to suppress issues - auto p…
…rompt user (#18) [STFT-076: STFT-076: Secureli ignore - ability to suppress issues - auto prompt user](https://slalom.atlassian.net/browse/STFT-76) This PR adds a new feature which prompts users after a scan that has resulted in a linter failure if they would like to add an ignore rule for any of the detected failures. If the user agrees to add an ignore rule, then secureli iterates through each failure and asks the user if they want to add an ignore for that failure, if so, then it also asks if the user wants to ignore the failure for all files or a specific file. To test this, make any change (and stage the file) that would cause a linter failure. Some simple ones would be adding some white space at the end of a line or removing the blank line at the end of a file. Any linter failure should trigger the notification. Note: New ignore rules are detected as an available upgrade, so when you run your next scan after adding an ignore, you will want to confirm the upgrade.
- Loading branch information
Showing
47 changed files
with
1,143 additions
and
135 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
echo: | ||
level: ERROR | ||
repo_files: | ||
max_file_size: 1000000 | ||
exclude_file_patterns: | ||
- .idea/ | ||
- .idea/ | ||
ignored_file_extensions: | ||
- .pyc | ||
- .drawio | ||
- .png | ||
- .jpg | ||
|
||
echo: | ||
level: ERROR | ||
- .pyc | ||
- .drawio | ||
- .png | ||
- .jpg | ||
max_file_size: 1000000 |
Binary file not shown.
Binary file not shown.
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
Oops, something went wrong.