use tree_sitter::Node;
use crate::cop::{Cop, CopConfig};
use crate::diagnostic::{Diagnostic};
use crate::parse::source::SourceFile;
pub struct CreateTableWithTimestamps;
impl Cop for CreateTableWithTimestamps {
fn name(&self) -> &'static str {
"Rails/CreateTableWithTimestamps"
}
fn redundant_disable_audit(&self) -> bool {
false
}
fn default_include(&self) -> &'static [&'static str] {
&["db/**/*.rb"]
}
fn default_exclude(&self) -> &'static [&'static str] {
&["**/db/**/*_create_active_storage_tables.active_storage.rb", "**/db/**/*_create_active_storage_variant_records.active_storage.rb"]
}
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);
}
}