`Naming/FileName` check reports `Rakefile.rb`
artur-intech opened this issue · comments
My rake file is named Rakefile.rb
and I get the following report:
rubocop Rakefile.rb
Inspecting 1 file
C
Offenses:
Rakefile.rb:1:1: C: Naming/FileName: The name of this source file (Rakefile.rb) should use snake_case.
Is there any reason why this is considered an issue? Rakefile.rb
is the default filename among the others.
Why those filenames are not listed in the default config?
Is there any reason why this is considered an issue? Rakefile.rb is the default filename among the others.
Not really a problem, just we hadn't accounted for. I guess we'll have to update the default config, as I was aware only of Rakefile
and rakefile.rb
.
I see we also forgot to rename Exclude
to AllowedNames
/AllowedFileNames
or something along those lines.
Fixed in #12816.