@snyk/code-client
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -14,2 +14,9 @@ import { Log } from 'sarif'; | ||
} | ||
export interface RuleProperties { | ||
tags: string[]; | ||
exampleCommitFixes?: ExampleCommitFix[]; | ||
exampleCommitDescriptions?: string[]; | ||
precision: string; | ||
cwe?: string[]; | ||
} | ||
interface ExampleCommitFix { | ||
@@ -16,0 +23,0 @@ commitURL: string; |
@@ -48,2 +48,8 @@ "use strict"; | ||
const suggestionId = `${language}/${suggestion.rule}`; | ||
const ruleProperties = { | ||
tags: [language, ...suggestion.tags, ...suggestion.categories], | ||
exampleCommitFixes: suggestion.exampleCommitFixes, | ||
exampleCommitDescriptions: suggestion.exampleCommitDescriptions, | ||
precision: 'very-high' | ||
}; | ||
const rule = { | ||
@@ -62,6 +68,3 @@ id: suggestionId, | ||
}, | ||
properties: { | ||
tags: [language, ...suggestion.tags, ...suggestion.categories], | ||
precision: 'very-high', | ||
}, | ||
properties: ruleProperties | ||
}; | ||
@@ -68,0 +71,0 @@ if ((_a = suggestion.cwe) === null || _a === void 0 ? void 0 : _a.length) { |
@@ -73,3 +73,3 @@ { | ||
}, | ||
"version": "3.0.0" | ||
"version": "3.1.0" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134867
1947