Skip to content

Commit

Permalink
Merge 30dba11 into fd46587
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelFain committed May 29, 2024
2 parents fd46587 + 30dba11 commit 62ced1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .changelog/4309.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
changes:
- description: Added exclusion for certain file paths when using `validate` with a `--include-untracked` flag.
type: feature
pr_number: 4309
5 changes: 5 additions & 0 deletions demisto_sdk/commands/validate/old_validate_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@
"DemistoClassApiModule.py",
]

SKIPPED_PATHS = [
"Packs/myPack", "myPack"
]

class OldValidateManager:
def __init__(
Expand Down Expand Up @@ -2493,6 +2496,8 @@ def filter_to_relevant_files(self, file_set, check_metadata_files=False):
old_format_files: set = set()
valid_types: set = set()
for path in file_set:
if self.include_untracked and any(skipped_path in str(path) for skipped_path in SKIPPED_PATHS):
continue
old_path = None
if isinstance(path, tuple):
file_path = str(path[1])
Expand Down

0 comments on commit 62ced1a

Please sign in to comment.