Skip to content

Commit

Permalink
configure lint-mitre to ignore schema test files
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-githubs committed Oct 9, 2024
1 parent 49f2deb commit d57428c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .scripts/mitre_mapping_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@


def main(path: Path) -> bool:
# Ignore any schema test files
# Schema tests can't be loaded by panther_analysis_tool because each file contains multiple
# YAML documents.
ignore_files = list(path.glob("**/*_tests.y*ml"))

# Load Repo
analysis_items = load_analysis_specs([path], ignore_files=[])
analysis_items = load_analysis_specs([path], ignore_files=ignore_files)

items_with_invalid_mappings = [] # Record all items with bad tags
for analysis_item in analysis_items:
Expand Down

0 comments on commit d57428c

Please sign in to comment.