Skip to content

Commit

Permalink
exclude cpplint from bandit checks via command line
Browse files Browse the repository at this point in the history
  • Loading branch information
ivikhrev committed Apr 4, 2022
1 parent 05266c9 commit cad1e49
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .bandit
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
### in both 'tests' and 'skips', this would be nonsensical and is detected by
### Bandit at runtime.

exclude: /cmake/cpplint

# Available tests:
# B101 : assert_used
# B102 : exec_used
Expand Down
3 changes: 2 additions & 1 deletion ci/check-basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ def complain(message):
all_passed = False

print('running bandit...', flush=True)
if subprocess.run([sys.executable, '-m', 'bandit', '.', '-r', '-c', '.bandit'], cwd=OMZ_ROOT).returncode != 0:
if subprocess.run([sys.executable, '-m', 'bandit', '.', '-r', '-c', '.bandit',
'--exclude', './cmake/cpplint/cpplint.py'], cwd=OMZ_ROOT).returncode != 0:
all_passed = False

print('running documentation checks...', flush=True)
Expand Down
Empty file modified cmake/cpplint/cpplint.py
100755 → 100644
Empty file.

0 comments on commit cad1e49

Please sign in to comment.