We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df2ff76 commit 5687163Copy full SHA for 5687163
utils/sarif.go
@@ -243,9 +243,8 @@ func FilterRulesFromSarif(sarifData []byte) ([]byte, error) {
243
if runMap, ok := run.(map[string]interface{}); ok {
244
if tool, ok := runMap["tool"].(map[string]interface{}); ok {
245
if driver, ok := tool["driver"].(map[string]interface{}); ok {
246
- if _, exists := driver["rules"]; exists {
247
- driver["rules"] = nil
248
- }
+ // Always set rules to null to maintain consistent output format
+ driver["rules"] = nil
249
}
250
251
0 commit comments