Skip to content

Commit

Permalink
Configure lint-mitre to ignore schema test files (#1381)
Browse files Browse the repository at this point in the history
Co-authored-by: Ariel Ropek <[email protected]>
  • Loading branch information
ben-githubs and arielkr256 authored Oct 15, 2024
1 parent 9f4366a commit 139d405
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 139d405

Please sign in to comment.