Skip to content

Commit

Permalink
fixup: update severity default to avoid empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
cfabianski committed Aug 18, 2023
1 parent b7e5e86 commit 3ec6a54
Show file tree
Hide file tree
Showing 30 changed files with 100 additions and 90 deletions.
2 changes: 1 addition & 1 deletion e2e/rules/.snapshots/TestAuxilary-testdata-data-auxilary
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ high:
display_severity: high
sensitive_data_category_weighting: 2
rule_severity_weighting: 2
trigger_weighting: true
local_data_types: true
final_weighting: 6


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5


Expand Down
4 changes: 2 additions & 2 deletions e2e/rules/.snapshots/TestSanitizer-testdata-data-sanitizer
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ critical:
display_severity: critical
sensitive_data_category_weighting: 2
rule_severity_weighting: 5
trigger_weighting: true
local_data_types: true
final_weighting: 9
- rule:
cwe_ids:
Expand Down Expand Up @@ -85,7 +85,7 @@ critical:
display_severity: critical
sensitive_data_category_weighting: 2
rule_severity_weighting: 5
trigger_weighting: true
local_data_types: true
final_weighting: 9


Expand Down
2 changes: 1 addition & 1 deletion e2e/rules/.snapshots/TestSecrets-secrets
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ medium:
display_severity: medium
sensitive_data_category_weighting: 2
rule_severity_weighting: 2
trigger_weighting: false
local_data_types: false
final_weighting: 4


Expand Down
12 changes: 6 additions & 6 deletions new/detector/composition/java/.snapshots/TestScope--scope.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -69,7 +69,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -105,7 +105,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -141,7 +141,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -177,7 +177,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -213,6 +213,6 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ high:
title: ""
description: ""
documentation_url: ""
severity: ""
severity: low
line_number: 2
full_filename: different-line.java
filename: different-line.java
Expand Down Expand Up @@ -35,10 +35,10 @@ high:
fingerprint: b08f2b317021ef0197dc9286477e251d_0
old_fingerprint: b08f2b317021ef0197dc9286477e251d_0
severity:
rule_severity: ""
rule_severity: low
display_severity: high
sensitive_data_category_weighting: 2
rule_severity_weighting: 2
trigger_weighting: true
local_data_types: true
final_weighting: 6

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ high:
title: ""
description: ""
documentation_url: ""
severity: ""
severity: low
line_number: 1
full_filename: same-line.java
filename: same-line.java
Expand Down Expand Up @@ -35,10 +35,10 @@ high:
fingerprint: b000c2a9a82d59a1e826bc709cca9307_0
old_fingerprint: b000c2a9a82d59a1e826bc709cca9307_0
severity:
rule_severity: ""
rule_severity: low
display_severity: high
sensitive_data_category_weighting: 2
rule_severity_weighting: 2
trigger_weighting: true
local_data_types: true
final_weighting: 6

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -69,6 +69,6 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -69,7 +69,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -105,7 +105,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -141,7 +141,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -177,7 +177,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -213,6 +213,6 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ high:
title: ""
description: ""
documentation_url: ""
severity: ""
severity: low
line_number: 1
full_filename: assigment-expression.js
filename: assigment-expression.js
Expand Down Expand Up @@ -35,10 +35,10 @@ high:
fingerprint: 3c919e47299fa396f901d19edaad859c_0
old_fingerprint: 3c919e47299fa396f901d19edaad859c_0
severity:
rule_severity: ""
rule_severity: low
display_severity: high
sensitive_data_category_weighting: 2
rule_severity_weighting: 2
trigger_weighting: true
local_data_types: true
final_weighting: 6

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ high:
title: ""
description: ""
documentation_url: ""
severity: ""
severity: low
line_number: 1
full_filename: variable-declarator.js
filename: variable-declarator.js
Expand Down Expand Up @@ -35,10 +35,10 @@ high:
fingerprint: 5d86ec557137111caf0eca9a7d304c91_0
old_fingerprint: 5d86ec557137111caf0eca9a7d304c91_0
severity:
rule_severity: ""
rule_severity: low
display_severity: high
sensitive_data_category_weighting: 2
rule_severity_weighting: 2
trigger_weighting: true
local_data_types: true
final_weighting: 6

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -69,7 +69,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -105,7 +105,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -141,7 +141,7 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5
- rule:
cwe_ids:
Expand Down Expand Up @@ -177,6 +177,6 @@ high:
rule_severity: high
display_severity: high
rule_severity_weighting: 5
trigger_weighting: false
local_data_types: false
final_weighting: 5

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ low:
title: ""
description: ""
documentation_url: ""
severity: ""
severity: low
line_number: 1
full_filename: deconstructing.js
filename: deconstructing.js
Expand All @@ -29,9 +29,9 @@ low:
fingerprint: 391f0431340399f3f30398341feeb70a_0
old_fingerprint: 391f0431340399f3f30398341feeb70a_0
severity:
rule_severity: ""
rule_severity: low
display_severity: low
rule_severity_weighting: 2
trigger_weighting: false
local_data_types: false
final_weighting: 2

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ low:
title: ""
description: ""
documentation_url: ""
severity: ""
severity: low
line_number: 1
full_filename: multiple_objects.js
filename: multiple_objects.js
Expand All @@ -29,9 +29,9 @@ low:
fingerprint: 83d173c5a31e8a9fc4b42968d18f584f_0
old_fingerprint: 83d173c5a31e8a9fc4b42968d18f584f_0
severity:
rule_severity: ""
rule_severity: low
display_severity: low
rule_severity_weighting: 2
trigger_weighting: false
local_data_types: false
final_weighting: 2

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ high:
title: ""
description: ""
documentation_url: ""
severity: ""
severity: low
line_number: 1
full_filename: concatanation.js
filename: concatanation.js
Expand Down Expand Up @@ -35,10 +35,10 @@ high:
fingerprint: 272ebbd3e69ab1032f6fb14b69a79ae8_0
old_fingerprint: 272ebbd3e69ab1032f6fb14b69a79ae8_0
severity:
rule_severity: ""
rule_severity: low
display_severity: high
sensitive_data_category_weighting: 2
rule_severity_weighting: 2
trigger_weighting: true
local_data_types: true
final_weighting: 6

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ high:
title: ""
description: ""
documentation_url: ""
severity: ""
severity: low
line_number: 1
full_filename: simple.js
filename: simple.js
Expand Down Expand Up @@ -35,10 +35,10 @@ high:
fingerprint: 971b852ae8266c6d2b25437584017e2c_0
old_fingerprint: 971b852ae8266c6d2b25437584017e2c_0
severity:
rule_severity: ""
rule_severity: low
display_severity: high
sensitive_data_category_weighting: 2
rule_severity_weighting: 2
trigger_weighting: true
local_data_types: true
final_weighting: 6

Loading

0 comments on commit 3ec6a54

Please sign in to comment.