Skip to content

Commit

Permalink
🎭 Indent and sort audit --display-results output
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinHock committed Jul 23, 2019
1 parent d0bea23 commit 6a3f206
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion detect_secrets/core/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,16 @@ def print_audit_results(baseline_filename):
print('Failed to retrieve baseline from {filename}'.format(filename=baseline_filename))
return

print(json.dumps(determine_audit_results(baseline, baseline_filename)))
print(
json.dumps(
determine_audit_results(
baseline,
baseline_filename,
),
indent=2,
sort_keys=True,
),
)


def _get_baseline_from_file(filename): # pragma: no cover
Expand Down

1 comment on commit 6a3f206

@KevinHock
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn, meant to use the 🎨 emoji

Please sign in to comment.