We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6611bb commit dc7472eCopy full SHA for dc7472e
codechecker_common/skiplist_handler.py
@@ -52,8 +52,13 @@ def __gen_regex(self, skip_lines):
52
"""
53
for skip_line in skip_lines:
54
norm_skip_path = os.path.normpath(skip_line[1:].strip())
55
+ # fnmatch places a '\Z' at the end, this is equivalent to '$'
56
+ # (end of input) so it must be removed.
57
+ # Optionally we match the user given path with a '/.*' ending.
58
+ # This, if the given input is a folder will
59
+ # resolve all files contained within.
60
rexpr = re.compile(
- fnmatch.translate(norm_skip_path) + r"(?:\/.*)?")
61
+ fnmatch.translate(norm_skip_path)[:-2] + r"(?:/.*)?\Z")
62
self.__skip.append((skip_line, rexpr))
63
64
def __check_line_format(self, skip_lines):
0 commit comments