Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tommady committed Feb 23, 2023
1 parent 5c7620e commit 92f8eba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/info/filetype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 92f8eba

Please sign in to comment.