From c6751ca6ade838b25f3f6f29dafb67134b766198 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 24 Nov 2023 16:00:22 +0000 Subject: [PATCH 1/2] Show details of in-line suppression comment, when formatting the output of `snyk code test` --- template/code/test-report.code-snip.hbs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/template/code/test-report.code-snip.hbs b/template/code/test-report.code-snip.hbs index bff6bbf..ff42e95 100644 --- a/template/code/test-report.code-snip.hbs +++ b/template/code/test-report.code-snip.hbs @@ -12,6 +12,9 @@
  • SNYK-CODE
  • {{ruleiddesc.properties.cwe}}
  • +
    + In-line suppression comment: deepcode {{ruleiddesc.name}} +
    {{#unless @root.showSummaryOnly}} From 3045859f76ca0f3ebd84a45d9c06998ee02a8549 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 30 Nov 2023 16:09:06 +0000 Subject: [PATCH 2/2] Change rule name formatting based on MR feedback --- template/code/test-report.code-snip.hbs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/template/code/test-report.code-snip.hbs b/template/code/test-report.code-snip.hbs index ff42e95..c55a056 100644 --- a/template/code/test-report.code-snip.hbs +++ b/template/code/test-report.code-snip.hbs @@ -11,10 +11,8 @@
    • SNYK-CODE
    • {{ruleiddesc.properties.cwe}}
    • +
    • {{ruleiddesc.name}}
    -
    - In-line suppression comment: deepcode {{ruleiddesc.name}} -
    {{#unless @root.showSummaryOnly}}