Skip to main content

Module output

Module output 

Source
Expand description

Output formatters: CSV, SARIF, Checkstyle, clang/MSVC warning lines, and AST/metric pretty-dumps used by bca and the offender reporters.

The most commonly used writers (write_csv, write_sarif, write_checkstyle, write_clang_warning, write_msvc_warning) and shared types (OffenderRecord, Severity, TOOL_ID, CSV_HEADER, CSV_EXTENSION) are also re-exported at the crate root.

Re-exports§

pub use offenders::OffenderRecord;
pub use offenders::Severity;
pub use offenders::TOOL_ID;
pub use checkstyle::write_checkstyle;
pub use csv::CSV_EXTENSION;
pub use csv::CSV_HEADER;
pub use csv::write_csv;
pub use sarif::write_sarif;
pub use warning_line::write_clang_warning;
pub use warning_line::write_msvc_warning;

Modules§

checkstyle
Checkstyle 4.3 XML writer for OffenderRecord batches.
csv
CSV writer for FuncSpace trees.
offenders
Offender records consumed by CI/IDE output formats.
sarif
SARIF 2.1.0 writer for OffenderRecord batches.
warning_line
Compiler-warning line writers for OffenderRecord batches.

Structs§

Dump
Type tag identifying the AST-dump action; carries no data.
DumpCfg
Configuration options for dumping the AST of a code.

Functions§

dump_node
Dumps the AST of a code.
dump_ops
Dumps all operands and operators of a code.
dump_root
Dumps the metrics of a code.