diff --git a/crates/kebab-parse-code/Cargo.toml b/crates/kebab-parse-code/Cargo.toml index ac76da0..ad6aef5 100644 --- a/crates/kebab-parse-code/Cargo.toml +++ b/crates/kebab-parse-code/Cargo.toml @@ -2,12 +2,14 @@ name = "kebab-parse-code" version = { workspace = true } edition = { workspace = true } +rust-version = { workspace = true } license = { workspace = true } +repository = { workspace = true } +description = "Language-aware code parsing infrastructure (lang dispatch, .git/ detect, skip helpers) for the kebab pipeline (P10-1A-1)" [dependencies] anyhow = { workspace = true } gix = { workspace = true } -kebab-core = { path = "../kebab-core" } [dev-dependencies] tempfile = { workspace = true } diff --git a/crates/kebab-parse-code/tests/lang.rs b/crates/kebab-parse-code/tests/lang.rs index 73a1551..f7db0a9 100644 --- a/crates/kebab-parse-code/tests/lang.rs +++ b/crates/kebab-parse-code/tests/lang.rs @@ -48,6 +48,7 @@ fn special_filenames_map_to_identifiers() { assert_eq!(code_lang_for_path(Path::new("Dockerfile")), Some("dockerfile")); assert_eq!(code_lang_for_path(Path::new("foo.dockerfile")), Some("dockerfile")); assert_eq!(code_lang_for_path(Path::new("Makefile")), Some("make")); + assert_eq!(code_lang_for_path(Path::new("GNUmakefile")), Some("make")); } #[test] diff --git a/crates/kebab-parse-code/tests/repo.rs b/crates/kebab-parse-code/tests/repo.rs index 68365a1..0c11133 100644 --- a/crates/kebab-parse-code/tests/repo.rs +++ b/crates/kebab-parse-code/tests/repo.rs @@ -46,7 +46,7 @@ fn detect_repo_walks_up_to_git_dir() { } #[test] -fn detect_repo_caches_per_path_call_for_repeated_files_in_same_repo() { +fn detect_repo_returns_consistent_metadata_for_paths_in_same_repo() { let tmp = TempDir::new().unwrap(); let repo_root = tmp.path().join("myrepo"); fs::create_dir_all(&repo_root).unwrap();