- Rename index.rs to database.rs for clarity in purpose

- Update references in `scan.rs` to the renamed module
- Add `cargo clippy` step to CI for linting
This commit is contained in:
elipeter 2025-06-16 23:54:18 +02:00
parent 33c819bd3a
commit aef0aea973
4 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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(

View file

@ -2,7 +2,7 @@ mod cli;
mod commands;
mod utils;
mod walk;
mod index;
mod database;
use crate::utils::Config;
use cli::Cli;