node-sarif-builder
Advanced tools
Comparing version 0.1.2-alpha202201102305.0 to 0.1.2-alpha202201102313.0
@@ -16,8 +16,23 @@ { | ||
"BETAID", | ||
"Builer", | ||
"Guids", | ||
"JSONLINT", | ||
"MARKDOWNLINT", | ||
"Multiformat", | ||
"Nooo", | ||
"SARIF", | ||
"SAST", | ||
"Sarif", | ||
"checkov", | ||
"checkstyle", | ||
"codecov", | ||
"codeql", | ||
"devskim", | ||
"gitleaks", | ||
"hadolint", | ||
"identifer", | ||
"ktlint", | ||
"lcov", | ||
"MARKDOWNLINT", | ||
"multiformat", | ||
"myfile", | ||
"npmrc", | ||
@@ -28,3 +43,8 @@ "nvuillam", | ||
"sarif", | ||
"semgrep", | ||
"stefanzweifel", | ||
"terrascan", | ||
"terrasform", | ||
"tflint", | ||
"trivy", | ||
"typedoc", | ||
@@ -31,0 +51,0 @@ "venv", |
{ | ||
"name": "node-sarif-builder", | ||
"version": "0.1.2-alpha202201102305.0", | ||
"version": "0.1.2-alpha202201102313.0", | ||
"description": "Module to help building SARIF log files", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -53,2 +53,6 @@ # node-sarif-builder | ||
With node-sarif-builder, you can generate complex SARIF format with simple methods | ||
___ | ||
- Start by importing module | ||
@@ -60,2 +64,4 @@ | ||
____ | ||
- Create and init **SarifBuilder** and **SarifRunBuilder** objects | ||
@@ -73,2 +79,4 @@ | ||
____ | ||
- Add all rules that can be found in your results (recommended but optional) | ||
@@ -78,3 +86,3 @@ | ||
// Add SARIF rules | ||
for (const rule of rules) { | ||
for (const rule of rules) { // rules from your linter in any format | ||
const sarifRuleBuiler = new SarifRuleBuilder().initSimple({ | ||
@@ -89,2 +97,4 @@ ruleId: rule.id, // ex: "no-any" | ||
____ | ||
- For each found issue, create a SarifResultBuilder and add it to the SarifRunBuilder object | ||
@@ -94,3 +104,3 @@ | ||
// Add results | ||
for (const issue of issues) { | ||
for (const issue of issues) { // issues from your linter in any format | ||
const sarifResultBuilder = new SarifResultBuilder(); | ||
@@ -128,2 +138,4 @@ const sarifResultInit = { | ||
____ | ||
- Add run to sarifBuilder then generate JSON SARIF output file | ||
@@ -130,0 +142,0 @@ |
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
282065
1843
206