Skip to content

Commit

Permalink
make audit-sample-rules report only differences
Browse files Browse the repository at this point in the history
This makes it consistent with other diff-style tests.

Signed-off-by: Jiri Jaburek <[email protected]>
  • Loading branch information
comps authored and mildas committed Oct 9, 2024
1 parent e8b53fb commit e865e59
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions static-checks/diff/audit-sample-rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,5 @@ def report_diff(*args, ds_contents, sample_contents, filename, **kwargs):
'fail', rule_name, f'{filepath.name} changed',
ds_contents=ds_contents, sample_contents=sample_contents, filename=filepath.name,
)
else:
results.report('pass', rule_name, filepath.name)

results.report_and_exit()

0 comments on commit e865e59

Please sign in to comment.