Module formatter

Module formatter 

Source
Expand description

Output formatters for hadolint-rs lint results.

Provides multiple output formats for compatibility with various CI/CD systems:

  • TTY: Colored terminal output for human readability
  • JSON: Machine-readable format for CI/CD pipelines
  • SARIF: Static Analysis Results Interchange Format for GitHub Actions
  • Checkstyle: XML format for Jenkins and other tools
  • CodeClimate: JSON format for GitLab CI
  • GNU: Standard compiler-style output for editors

Structs§

CheckstyleFormatter
Checkstyle XML output formatter for Jenkins.
CodeClimateFormatter
CodeClimate JSON output formatter for GitLab CI.
GnuFormatter
GNU compiler-style output formatter.
JsonFormatter
JSON output formatter.
SarifFormatter
SARIF output formatter for GitHub Actions.
TtyFormatter
TTY (terminal) output formatter with colors.

Enums§

OutputFormat
Output format for lint results.

Traits§

Formatter
Trait for formatting lint results.

Functions§

format_result
Format a lint result using the specified output format.
format_result_to_string
Format a lint result to a string using the specified output format.