mirror of
https://github.com/hohn/sarif-cli.git
synced 2025-12-16 17:23:03 +01:00
Correct the =sarif-results-summary= commands
This commit is contained in:
committed by
=Michael Hohn
parent
780def7063
commit
62ae8dca4a
15
README.org
15
README.org
@@ -50,15 +50,19 @@
|
||||
|
||||
1. Display only main result. Using
|
||||
#+BEGIN_SRC sh
|
||||
sarif-results-summary -s data/wxWidgets-small -r data/wxWidgets_wxWidgets__2021-11-21_16_06_30__export.sarif 2>&1 |less -p LexMySQL.cxx
|
||||
sarif-results-summary data/wxWidgets_wxWidgets__2021-11-21_16_06_30__export.sarif 2>&1 |\
|
||||
grep LexMySQL.cxx
|
||||
#+END_SRC
|
||||
only displays
|
||||
#+BEGIN_SRC text
|
||||
RESULT: src/stc/scintilla/lexers/LexMySQL.cxx:153:24:153:30: Local variable 'length' hides a [parameter of the same name](1).
|
||||
#+END_SRC
|
||||
|
||||
2. Display the related information. Using
|
||||
#+BEGIN_SRC sh
|
||||
sarif-results-summary -r data/wxWidgets_wxWidgets__2021-11-21_16_06_30__export.sarif 2>&1 | less -p LexMySQL.cxx
|
||||
sarif-results-summary \
|
||||
-r data/wxWidgets_wxWidgets__2021-11-21_16_06_30__export.sarif 2>&1 |\
|
||||
grep -A 2 LexMySQL.cxx
|
||||
#+END_SRC
|
||||
displays
|
||||
#+BEGIN_SRC text
|
||||
@@ -66,11 +70,14 @@
|
||||
|
||||
REFERENCE: src/stc/scintilla/lexers/LexMySQL.cxx:108:68:108:74: parameter of the same name
|
||||
#+END_SRC
|
||||
|
||||
3. Either display can be supplemented by source code snippets if the source is
|
||||
available. Using
|
||||
|
||||
#+BEGIN_SRC sh
|
||||
sarif-results-summary -s data/wxWidgets-small -r data/wxWidgets_wxWidgets__2021-11-21_16_06_30__export.sarif 2>&1 |less
|
||||
sarif-results-summary \
|
||||
-s data/wxWidgets-small \
|
||||
-r data/wxWidgets_wxWidgets__2021-11-21_16_06_30__export.sarif 2>&1 |\
|
||||
grep -A 4 LexMySQL.cxx
|
||||
#+END_SRC
|
||||
displays the source code with underlines
|
||||
#+BEGIN_SRC text
|
||||
|
||||
Reference in New Issue
Block a user