From 92f8eba90976d458e8dbfe51099bc689781468ce Mon Sep 17 00:00:00 2001 From: tommady Date: Thu, 23 Feb 2023 07:30:13 +0000 Subject: [PATCH] address comment --- src/info/filetype.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/info/filetype.rs b/src/info/filetype.rs index 8900539c..3011cd65 100644 --- a/src/info/filetype.rs +++ b/src/info/filetype.rs @@ -22,10 +22,9 @@ impl FileExtensions { #[allow(clippy::case_sensitive_file_extension_comparisons)] fn is_immediate(&self, file: &File<'_>) -> bool { file.name.to_lowercase().starts_with("readme") || - file.name.to_lowercase().starts_with("makefile") || file.name.ends_with(".ninja") || file.name_is_one_of( &[ - "GNUmakefile", "Cargo.toml", "SConstruct", "CMakeLists.txt", + "GNUmakefile", "Makefile", "makefile", "Cargo.toml", "SConstruct", "CMakeLists.txt", "build.gradle", "pom.xml", "Rakefile", "package.json", "Gruntfile.js", "Gruntfile.coffee", "BUILD", "BUILD.bazel", "WORKSPACE", "build.xml", "Podfile", "webpack.config.js", "meson.build", "composer.json", "RoboFile.php", "PKGBUILD",