Expand description
Extensible static analysis and executable engineering standards for Rust workspaces.
Modules§
- llm
- Machine-readable rule documentation for language-model consumers.
- output
- Terminal presentation shared by the library runner and CLI. Compact terminal presentation for the Rulewright CLI.
- runner
- Rule execution, reporting, fixing, and suppression cleanup. Rule execution, caching, reporting, fixing, and suppression cleanup.
Macros§
- pack_
ast_ rule - Declare a Rust AST rule owned by a statically linked downstream rule pack.
- pack_
line_ rule - Declare a Rust line rule owned by a statically linked downstream rule pack.
- pack_
toml_ rule - Declare a TOML rule owned by a statically linked downstream rule pack.
Structs§
- AstCtx
- Config
- Top-level rulewright configuration loaded from
rulewright.toml. - Config
Error - Failure to load or resolve rulewright configuration.
- Config
Rule - A rule entry enriched with resolved configuration for machine-readable reporting.
- Config
Value - JSON-compatible resolved configuration value.
- Dependency
Record - Example
- A code example that demonstrates a rule — used in
--detailoutput and tests. - FileCtx
- Per-file context passed to line rules with path, raw contents, and pre-split lines.
- Fix
- An auto-fix: replace a line range with new text.
- Function
Record - Path
- A borrowed native path with lexical operations only.
- PathBuf
- An owned native path with lexical operations only.
- Rule
- One lint rule in the language-neutral registry.
- Rule
Info - Shared metadata fields common to both line and AST rules.
- Rule
Meta - Unified metadata for a registered rule (line or AST).
- Rule
Pack - A statically linked downstream rule pack.
- Rule
Param - Rule
Registry - A deterministic collection of built-in and downstream rules.
- Shingle
Fingerprint - String
Record - Struct
Record - TomlCtx
- Violation
- A single lint violation reported by a rule against a file location.
- Workspace
Ctx - Workspace
Manifest - Workspace
Rust File
Enums§
- Param
Default - Param
Type - Registry
Error - Failure to construct a deterministic rule registry.
- Rule
Check - Language-specific rule check function stored in the unified registry.
- RuleFix
- Language-specific fix function corresponding to
RuleCheck. - Rule
Kind - The language and analysis context a rule operates on.
- Severity
Traits§
Functions§
- all_
rules - Collect all registered rules sorted by name.
- run_cli
- Run the stock CLI with Rulewright’s generic built-in rules.
- run_
with_ registry - Run the CLI with a caller-supplied registry of built-in and downstream rules.
- violation
- Construct a
Violationwithout a rule tag; registry dispatch attaches the rule identifier.