Skip to content

Commit 80ea1e4

Browse files
committed
Disable Python bandit errors in own Mega-Linter
1 parent 94cb4fe commit 80ea1e4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.mega-linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ MARKDOWN_FILTER_REGEX_EXCLUDE: '(license\.md)'
2222
MARKDOWN_MARKDOWN_LINK_CHECK_DISABLE_ERRORS: true
2323
SPELL_MISSPELL_FILTER_REGEX_EXCLUDE: '(\.automation/generated|docs/descriptors)'
2424
DOCKERFILE_HADOLINT_ARGUMENTS: "--ignore DL3003 --ignore DL3007 --ignore DL3013 --ignore DL3016 --ignore DL3018 --ignore DL3028 --ignore DL4001 --ignore DL4006 --ignore SC2015 --ignore SC2016 --ignore SC2039 --ignore SC2086 --ignore SC1091"
25+
PYTHON_BANDIT_DISABLE_ERRORS: true
2526
SHOW_ELAPSED_TIME: true
2627
EMAIL_REPORTER_EMAIL: [email protected]
2728
FILEIO_REPORTER: true

megalinter/descriptors/python.megalinter-descriptor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ linters:
170170
# BANDIT
171171
- linter_name: bandit
172172
name: PYTHON_BANDIT
173+
linter_text: |
174+
bandit checks for security risks
175+
176+
If you find it too harsh, you may define `PYTHON_BANDIT_DISABLE_ERRORS: true` in your .mega-linter.yml config file
173177
linter_url: https://bandit.readthedocs.io/en/latest/
174178
linter_repo: https://github.com/PyCQA/bandit
175179
linter_rules_url: https://bandit.readthedocs.io/en/latest/plugins/index.html#complete-test-plugin-listing

0 commit comments

Comments
 (0)