diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 000bb2c4..6a095610 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -18,5 +18,7 @@ jobs: - uses: actions/checkout@v4 - name: Build run: cargo build --verbose + - name: Run linter + run: cargo clippy --all-targets --all-features -- -D warnings - name: Run tests run: cargo test --verbose diff --git a/src/commands/scan.rs b/src/commands/scan.rs index a5fa4e02..42cc9032 100644 --- a/src/commands/scan.rs +++ b/src/commands/scan.rs @@ -3,7 +3,7 @@ use crate::utils::project::get_project_info; use std::path::Path; use crate::utils::config::Config; use tree_sitter::{Parser}; -use crate::index::index::Indexer; +use crate::database::index::Indexer; use crate::walk::spawn_senders; pub fn handle( diff --git a/src/index.rs b/src/database.rs similarity index 100% rename from src/index.rs rename to src/database.rs diff --git a/src/main.rs b/src/main.rs index dbe0276e..bb097c4a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ mod cli; mod commands; mod utils; mod walk; -mod index; +mod database; use crate::utils::Config; use cli::Cli;