pub struct RuleTQ02;Expand description
TQ02: IF/WHILE blocks should use BEGIN…END for multi-statement bodies.
This is a stub implementation. Precise detection requires tracking statement counts after control-flow keywords, which is deferred to a future iteration.
Trait Implementations§
Source§impl Rule for RuleTQ02
impl Rule for RuleTQ02
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
One-line description.
Source§fn explanation(&self) -> &'static str
fn explanation(&self) -> &'static str
Multi-sentence explanation for AI consumers.
Source§fn is_fixable(&self) -> bool
fn is_fixable(&self) -> bool
Can this rule auto-fix violations?
Source§fn crawl_type(&self) -> CrawlType
fn crawl_type(&self) -> CrawlType
Which segments should be visited.
Source§fn eval(&self, _ctx: &RuleContext<'_>) -> Vec<LintViolation>
fn eval(&self, _ctx: &RuleContext<'_>) -> Vec<LintViolation>
Evaluate the rule at the given context, returning violations.
Auto Trait Implementations§
impl Freeze for RuleTQ02
impl RefUnwindSafe for RuleTQ02
impl Send for RuleTQ02
impl Sync for RuleTQ02
impl Unpin for RuleTQ02
impl UnsafeUnpin for RuleTQ02
impl UnwindSafe for RuleTQ02
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more