-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
Rails/FilePath
cop error on join
method with implicit receiver
```console echo 'join(Rails.root, path)' | rubocop --only Rails/FilePath --stdin bug.rb -d n error occurred while Rails/FilePath cop was inspecting bug.rb:1:0. undefined method `each_node' for nil lib/rubocop/cop/rails/file_path.rb:54:in `rails_root_nodes?' lib/rubocop/cop/rails/file_path.rb:60:in `rails_root_join_nodes?' lib/rubocop/cop/rails/file_path.rb:108:in `check_for_rails_root_join_with_string_arguments' lib/rubocop/cop/rails/file_path.rb:70:in `on_send' ```
- Loading branch information
1 parent
fecead8
commit 815d119
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [#1397](https://github.com/rubocop/rubocop-rails/pull/1397): Fix `Rails/FilePath` cop error on `join` method with implicit receiver. ([@viralpraxis][]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters