Docs.rs
code-baseline-1.0.0
code-baseline 1.0.0
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
stewartjarod
Dependencies
clap ^4
normal
globset ^0.4
normal
ignore ^0.4
normal
rayon ^1
normal
regex ^1
normal
serde ^1
normal
serde_json ^1
normal
toml ^0.8
normal
tempfile ^3.25.0
dev
Versions
44.21%
of the crate is documented
Go to latest version
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module format
code_
baseline
1.0.0
Module format
Module Items
Functions
In code_
baseline::
cli
code_baseline
::
cli
Module
format
Copy item path
Source
Functions
ยง
apply_
fixes
Apply fixes from violations to source files. Returns the number of fixes applied. Fixes are targeted to the specific line where the violation occurred to avoid accidentally replacing a different occurrence of the same pattern.
print_
compact
Print violations in compact one-line-per-violation format. Violations go to stdout; summary goes to stderr.
print_
github
Print violations as GitHub Actions workflow commands. Violations go to stdout; summary goes to stderr.
print_
json
Print violations as structured JSON.
print_
markdown
Print violations as a Markdown report (for GitHub PR summaries).
print_
pretty
Print violations grouped by file with ANSI colors.
print_
sarif
Print violations in SARIF v2.1.0 format for GitHub Code Scanning.