Discover Packages
github.com/sapiuwu/envaudit
internal
report
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Aug 5, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package report formats scan results for humans (colored text) and
machines (JSON), and centralizes exit-code decisions.
PrintJSON writes the machine-readable report to w.
PrintText writes a human-friendly, colored report to w.
type Finding struct {
Severity Severity `json:"severity"`
File string `json:"file"`
Line int `json:"line,omitempty"`
Rule string `json:"rule"`
Message string `json:"message"`
}
Finding is a single issue (or informational OK) discovered during a scan.
type Result struct {
Findings []Finding `json:"findings"`
FilesCount int `json:"files_scanned"`
}
Result is the full output of a scan, ready to be rendered.
ExitCode returns 1 if the highest finding severity meets or exceeds
minSeverity, else 0. This is what backs --strict / severity_exit_code.
HighestSeverity returns the most severe finding in the result, or
SeverityOK if there are none.
Severity levels, ordered from least to most severe. The numeric Rank is
what makes --strict / severity_exit_code comparisons simple.
Rank returns a comparable integer for severity ordering.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.