Skip to content

Commit cad1e49

Browse files
committed
exclude cpplint from bandit checks via command line
1 parent 05266c9 commit cad1e49

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.bandit

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
### in both 'tests' and 'skips', this would be nonsensical and is detected by
88
### Bandit at runtime.
99

10-
exclude: /cmake/cpplint
11-
1210
# Available tests:
1311
# B101 : assert_used
1412
# B102 : exec_used

ci/check-basics.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def complain(message):
150150
all_passed = False
151151

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

156157
print('running documentation checks...', flush=True)

cmake/cpplint/cpplint.py

100755100644
File mode changed.

0 commit comments

Comments
 (0)