Skip to content

Commit

Permalink
Indent JSONs with tabs instead of spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Izhak Jakov committed Aug 31, 2023
1 parent f939493 commit 746b2b7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion detect_secrets/core/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def print_audit_results(baseline_filename):
baseline,
baseline_filename,
),
indent=2,
indent='\t',
sort_keys=True,
),
)
Expand Down
2 changes: 1 addition & 1 deletion detect_secrets/core/baseline.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def format_baseline_for_output(baseline):

return json.dumps(
baseline,
indent=2,
indent='\t',
sort_keys=True,
separators=(',', ': '),
)
Expand Down
2 changes: 1 addition & 1 deletion detect_secrets/core/report/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def print_json_report(
if fail_on_audited_real:
secrets += audited_real_secrets

print(json.dumps({'stats': stats, 'secrets': secrets}, indent=4))
print(json.dumps({'stats': stats, 'secrets': secrets}, indent='\t'))


def print_table_report(
Expand Down
2 changes: 1 addition & 1 deletion detect_secrets/core/secrets_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def json(self):
def __str__(self): # pragma: no cover
return json.dumps(
self.json(),
indent=2,
indent='\t',
sort_keys=True,
)

Expand Down

0 comments on commit 746b2b7

Please sign in to comment.