Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PyCQA/bandit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a003d11fe654abbd0751b7355973f8db34860479
Choose a base ref
..
head repository: PyCQA/bandit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 442a692563958b6a1a798566a9c0a81284b788d9
Choose a head ref
Showing with 1 addition and 3 deletions.
  1. +1 −3 bandit/core/manager.py
4 changes: 1 addition & 3 deletions bandit/core/manager.py
Original file line number Diff line number Diff line change
@@ -226,10 +226,8 @@ def discover_files(self, targets, recursive=False, excluded_paths=""):
# if this is a directory and recursive is set, find all files
if os.path.isdir(fname):
if recursive:
gitignore_mgr = _build_gitignore_mgr(fname)

new_files, newly_excluded = _get_files_from_dir(
gitignore_mgr,
_build_gitignore_mgr(fname),
included_globs=included_globs,
excluded_path_strings=excluded_path_globs,
)