Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 6 additions & 1 deletion codecov_cli/helpers/folder_searcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ def _is_included(
multipart_include_regex: Optional[Pattern],
path: pathlib.Path,
):
return filename_include_regex.match(path.name) and (
try:
path_name = path.name
except TypeError:
logger.warning(f"Unable to determine name for path: {path}")
return False
return filename_include_regex.match(path_name) and (
multipart_include_regex is None
or multipart_include_regex.match(path.resolve().as_posix())
)
Expand Down
5 changes: 4 additions & 1 deletion codecov_cli/plugins/gcov.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ def __init__(
):
self.executable = executable or "gcov"
self.extra_arguments = extra_arguments or []
self.folders_to_ignore = folders_to_ignore or []
default_folders_to_ignore = ["node_modules", ".git", "vendor"]
self.folders_to_ignore = list(
set(default_folders_to_ignore + (folders_to_ignore or []))
)
self.patterns_to_ignore = patterns_to_ignore or []
self.patterns_to_include = patterns_to_include or []
self.project_root = project_root or pathlib.Path(os.getcwd())
Expand Down
Loading