From 0434b5034db641691815c5400aac10aa078a15bd Mon Sep 17 00:00:00 2001 From: Zach Ahn Date: Fri, 25 Oct 2024 12:10:16 -0400 Subject: [PATCH] ignore/types: add `*.rake` extension to list of Ruby file types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR adds the .rake extension to the Ruby type. It's a pretty common file extension in Rails apps—in my experience, the Rakefile is often pretty empty and only sets some stuff up while most of the code lives in various .rake files. See: https://ruby.github.io/rake/doc/rakefile_rdoc.html#label-Multiple+Rake+Files Closes #2921 --- crates/ignore/src/default_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index fefcdb5b..53b192ac 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -228,7 +228,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ // Idiomatic files "config.ru", "Gemfile", ".irbrc", "Rakefile", // Extensions - "*.gemspec", "*.rb", "*.rbw" + "*.gemspec", "*.rb", "*.rbw", "*.rake" ]), (&["rust"], &["*.rs"]), (&["sass"], &["*.sass", "*.scss"]),