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/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
    }
}