rrubocop 0.7.0

Fast RuboCop-compatible Ruby linter in Rust (tree-sitter). No Ruby for linting; ERB configs need ruby.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Lint/UselessElseWithoutRescue — no-op (syntax error in modern Ruby).

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

pub struct UselessElseWithoutRescue;

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

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