Skip to content
Open
Changes from 10 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b921855
Remove '*' from skip file discorvery to match documentation better
furtib Sep 26, 2025
b1ac6f6
Add '*' to entries that trivially folders
furtib Oct 1, 2025
2a446da
Revert "Add '*' to entries that trivially folders"
furtib Oct 2, 2025
b6611bb
Add in regex to only match all files if the specified input is a dire…
furtib Oct 2, 2025
f8631e2
Fix regex, add comment explaining what does it do
furtib Oct 3, 2025
8f50005
More sophisticated removal of '\Z' in skip file regex
furtib Oct 6, 2025
f257c4a
Handle windows paths correctly in skipfiles
furtib Oct 6, 2025
e00c115
Update platform specific separator
furtib Oct 6, 2025
866e094
Escape that separator every time
furtib Oct 6, 2025
d9c18f2
Remove the version specific line
furtib Oct 6, 2025
3da5dce
Remove unnecesarry import
furtib Oct 6, 2025
14178f3
Generalyze analyze command
furtib Oct 7, 2025
529357d
Add test for filenames that are prefixes for each other
furtib Oct 7, 2025
63af120
Add test for folder skip recognition
furtib Oct 7, 2025
f9eff85
Remove trailing whitespaces
furtib Oct 7, 2025
c3063fa
Fix linting errors
furtib Oct 7, 2025
8518071
Fix typos, filenames, and Makefiles
furtib Oct 10, 2025
40225a1
Rewrite test to be more extensible
furtib Oct 10, 2025
430127f
Comment skip_directory test
furtib Oct 10, 2025
38f9a6b
Fix lint errors
furtib Oct 10, 2025
ecf1151
Fix test
furtib Oct 10, 2025
7fa325b
change *.o to $(obgs)
furtib Nov 14, 2025
b776f74
Remove unnecesary space
furtib Nov 14, 2025
5a6c54e
Change skipme/*.o to $(OBJS)
furtib Nov 14, 2025
be82c4c
Update comment in analyzer/tests/functional/skip/test_skip.py
furtib Nov 14, 2025
089144e
Update comment in analyzer/tests/functional/skip/test_skip.py
furtib Nov 14, 2025
83be98a
Remove unnecesary space
furtib Nov 14, 2025
4efe0c4
Fix comments and make files
furtib Nov 20, 2025
c535737
Fragment comment to avoid too long line
furtib Nov 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion codechecker_common/skiplist_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import fnmatch
import re
import os
import sys

from codechecker_common.logger import get_logger

Expand Down Expand Up @@ -52,8 +53,18 @@ def __gen_regex(self, skip_lines):
"""
for skip_line in skip_lines:
norm_skip_path = os.path.normpath(skip_line[1:].strip())
# fnmatch places a '\Z' (end of input) at the end, in this case,
# this is equivalent to '$' (end of line). This must be removed.
# Optionally we match the user given path with a '/.*' ending.
# This, if the given input is a folder will
# resolve all files contained within.
# Note: normalization removes '/' from the end, see:
# https://docs.python.org/3/library/os.path.html#os.path.normpath
translated_glob = fnmatch.translate(norm_skip_path)
if translated_glob.endswith(r"\Z"):
translated_glob = translated_glob[:-2]
rexpr = re.compile(
fnmatch.translate(norm_skip_path + '*'))
translated_glob + fr"(?:\{os.path.sep}.*)?$")
self.__skip.append((skip_line, rexpr))

def __check_line_format(self, skip_lines):
Expand Down
Loading