Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2021-09-28 10:12:49 +02:00
parent 89458d1420
commit 8a83224072

View file

@ -305,7 +305,7 @@ class CodeParser():
}
def is_file_excluded(self, path, exclude_wildcards):
"""Whether the give file path is excluded."""
"""Whether the given file path is excluded."""
# exclude_wildcards may be None. Also, consider the global exclusions.
exclude_wildcards = (exclude_wildcards or []) + self.excluded_files
for pattern in exclude_wildcards: