Crate fortitude

Source

Modules§

check
cli
explain

Macros§

register_rules
some_vec
Shorthand for Some(vec![x]). Note that an empty argument list is forbidden – functions should just return None instead
violation

Structs§

Diagnostic
Reports of each violation. They are pretty-printable and sortable.
Violation

Enums§

Category
The category of each rule defines the sort of problem it intends to solve.
ViolationPosition
The location within a file at which a violation was detected

Traits§

ASTRule
Implemented by rules that analyse the abstract syntax tree.
PathRule
Implemented by rules that act directly on the file path.
Rule
Implemented by all rules.
TextRule
Implemented by rules that analyse lines of code directly, using regex or otherwise.