rrubocop 0.7.2

Fast RuboCop-compatible Ruby linter in Rust (tree-sitter). No Ruby for linting; ERB configs need ruby.
Documentation
//! RSpec/DescribeClass — breadth-first tree-sitter port.

use tree_sitter::Node;

use crate::cop::{Cop, CopConfig};
use crate::diagnostic::{Diagnostic};
use crate::parse::source::SourceFile;

pub struct DescribeClass;


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

    fn default_include(&self) -> &'static [&'static str] {
        &["**/*_spec.rb", "**/spec/**/*"]
    }

    fn default_exclude(&self) -> &'static [&'static str] {
        &["**/spec/features/**/*", "**/spec/requests/**/*", "**/spec/routing/**/*", "**/spec/system/**/*", "**/spec/views/**/*"]
    }

    fn interested_node_kinds(&self) -> &'static [&'static str] {
        &["pair", "call", "scope_resolution", "constant", "hash", "program", "string", "symbol", "command"]
    }

    fn check_node(
        &self,
        source: &SourceFile,
        node: Node<'_>,
        _config: &CopConfig,
        diagnostics: &mut Vec<Diagnostic>,
        _corrections: Option<&mut Vec<crate::correction::Correction>>,
    ) {
        // Breadth-first stub: not implemented — avoid method-name false positives.
        let _ = (source, node, diagnostics);
    }
}