pub trait Rule: Send + Sync {
// Required methods
fn code(&self) -> &'static str;
fn severity(&self) -> Severity;
fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
fn check(&self, ctx: &LintContext<'_>) -> Vec<CheckFailure>;
// Provided method
fn is_fixable(&self) -> bool { ... }
}Expand description
A lint rule that can check Helm charts.
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Get the rule description.
Sourcefn check(&self, ctx: &LintContext<'_>) -> Vec<CheckFailure>
fn check(&self, ctx: &LintContext<'_>) -> Vec<CheckFailure>
Run the rule and return any violations.
Provided Methods§
Sourcefn is_fixable(&self) -> bool
fn is_fixable(&self) -> bool
Check if this rule can be auto-fixed.