mirror of
https://github.com/hohn/sarif-cli.git
synced 2025-12-16 09:13:04 +01:00
Include all typegraph samples, from raw to refined
This commit is contained in:
committed by
=Michael Hohn
parent
ef51c3d84f
commit
0e7a941be3
@@ -3,3 +3,27 @@
|
|||||||
serve as documentation in their current state.
|
serve as documentation in their current state.
|
||||||
|
|
||||||
Think of it as staging for [[../docs]].
|
Think of it as staging for [[../docs]].
|
||||||
|
|
||||||
|
** The typegraphs
|
||||||
|
The type graph files are derived from a sarif input file, with various options
|
||||||
|
controlling output.
|
||||||
|
|
||||||
|
To produce dot maps of a sarif file type graph, from raw (largest) to fully
|
||||||
|
filled (most compact):
|
||||||
|
|
||||||
|
#+BEGIN_SRC sh
|
||||||
|
cd ../data/treeio/2022-02-25
|
||||||
|
|
||||||
|
# Everything:
|
||||||
|
../../../bin/sarif-to-dot -t -d results.sarif | dot -Tpdf > typegraph-td.pdf
|
||||||
|
|
||||||
|
# Suppress edges to int/bool/string types in dot graph
|
||||||
|
../../../bin/sarif-to-dot -td -n results.sarif | dot -Tpdf > typegraph-tdn.pdf
|
||||||
|
|
||||||
|
# Additionally, only report unique array entry signatures
|
||||||
|
../../../bin/sarif-to-dot -td -nu results.sarif | dot -Tpdf > typegraph-tdnu.pdf
|
||||||
|
|
||||||
|
# Additionally, fill in missing (optional) entries in sarif input before other steps.
|
||||||
|
../../../bin/sarif-to-dot -td -nuf results.sarif | dot -Tpdf > typegraph-tdnuf.pdf
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
|||||||
BIN
notes/typegraph-td.pdf
Normal file
BIN
notes/typegraph-td.pdf
Normal file
Binary file not shown.
BIN
notes/typegraph-tdn.pdf
Normal file
BIN
notes/typegraph-tdn.pdf
Normal file
Binary file not shown.
BIN
notes/typegraph-tdnu.pdf
Normal file
BIN
notes/typegraph-tdnu.pdf
Normal file
Binary file not shown.
BIN
notes/typegraph-tdnuf.pdf
Normal file
BIN
notes/typegraph-tdnuf.pdf
Normal file
Binary file not shown.
@@ -1,8 +1,8 @@
|
|||||||
"""Operations on the type graph produced by sarif-to-dot -u -t -f
|
"""Operations on the type graph produced by sarif-to-dot -u -t -f
|
||||||
|
|
||||||
To get a map of this type graph, use
|
To get a map of this type graph, use
|
||||||
cd sarif-cli/data/treeio
|
cd ../data/treeio/2022-02-25
|
||||||
../../bin/sarif-to-dot -u -t -f -n -d results.sarif | dot -Tpdf > typegraph.pdf
|
../../../bin/sarif-to-dot -u -t -f -n -d results.sarif | dot -Tpdf > typegraph.pdf
|
||||||
|
|
||||||
This file also contains some type graph reference values; these may be moved out into
|
This file also contains some type graph reference values; these may be moved out into
|
||||||
separate files at some point.
|
separate files at some point.
|
||||||
|
|||||||
Reference in New Issue
Block a user