use tree_sitter::Node;
use crate::cop::{Cop, CopConfig};
use crate::diagnostic::{Diagnostic};
use crate::parse::source::SourceFile;
pub struct Presence;
impl Cop for Presence {
fn name(&self) -> &'static str {
"Rails/Presence"
}
fn interested_node_kinds(&self) -> &'static [&'static str] {
&["call", "if", "rescue", "unless", "while", "command"]
}
fn check_node(
&self,
source: &SourceFile,
node: Node<'_>,
_config: &CopConfig,
diagnostics: &mut Vec<Diagnostic>,
_corrections: Option<&mut Vec<crate::correction::Correction>>,
) {
let _ = (source, node, diagnostics);
}
}