Skip to main content

Module rules

Module rules 

Source
Expand description

Lint rule implementations.

Each submodule contains one or more related lint checks. All rules operate on the shared CrateIndex and produce Diagnostic values.

Modules§

doc_attr_interleave
MXL302: non-doc attribute interrupts a doc-comment stream on a #[miniextendr] item.
export_attrs
Export attribute redundancy checks.
ffi_unchecked
_unchecked FFI call outside guard context.
fn_visibility
Function visibility checks.
impl_validation
Impl block validation: class system compatibility and label uniqueness.
lifetime_param
MXL112: explicit lifetime parameter on #[miniextendr] function or impl block.
r_reserved_params
R reserved-word parameter name check.
rf_error
Direct Rf_error/Rf_errorcall usage lint.
s4_method_prefix
MXL111: s4_* method name on #[miniextendr(s4)] impl.
vctrs_self_ctor
MXL120: vctrs constructor returns Self / named type, or impl has an instance-method receiver.

Functions§

run_all_rules
Run all lint rules against the crate index, collecting diagnostics.