rrubocop 0.8.15

10x faster RuboCop drop-in. Same output format and configs, without maintaining RuboCop gems.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Lint/ItWithoutArgumentsInBlock — no-op (Ruby 3.4+ `it` block param).

use crate::cop::Cop;
use crate::diagnostic::Severity;

pub struct ItWithoutArgumentsInBlock;

impl Cop for ItWithoutArgumentsInBlock {
    fn name(&self) -> &'static str {
        "Lint/ItWithoutArgumentsInBlock"
    }

    fn default_severity(&self) -> Severity {
        Severity::Warning
    }
}