Skip to content

Commit

Permalink
Indentation for results adjusted for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
khalil-rashid committed Jul 13, 2022
1 parent 2bd3797 commit 510b3bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions meta/classes/cve-check.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,8 @@ def convert_to_sarif(d):
output_file.write('\t\t\t\t"informationUri": "https://pvs-studio.com/en/docs/manual/0038/",\n')
output_file.write('\t\t\t\t"version": "1.0.1",\n')
output_file.write('\t\t\t\t"rules": ')
json.dump(rulesList,output_file,indent=4) # dumping rules in file
output_file.write('\n\t\t\t\t\t')
json.dump(rulesList,output_file,indent=15) # dumping rules in file
output_file.write('\t\t\t }\n') # closing of driver
output_file.write('\t\t},\n') # closing of tool
output_file.write('\t\t"results": ')
Expand All @@ -512,6 +513,6 @@ def convert_to_sarif(d):
output_file.write('\n\t]')
output_file.write('\n}') # closing bracket for schema
output_file.close()





0 comments on commit 510b3bf

Please sign in to comment.