-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error occurred for Rails/FilePath
cop when nested File.join
#1053
Labels
bug
Something isn't working
Comments
In this connection, the following problems also exist We have the following code: File.join(Rails.root.join('app', 'models').to_s, 'user.rb') Run Expected behavior: Rails.root.join('app', 'models', 'user.rb').to_s Actual behavior: Rails.root.join('user.rb').to_s |
ydah
changed the title
An incorrect autocorrect for
An error occurred for Jul 24, 2023
Rails/FilePath
cop when nested File.join
Rails/FilePath
cop when nested File.join
ydakuka
added a commit
to ydakuka/rubocop-rails
that referenced
this issue
Jan 25, 2025
…nested File.join
ydakuka
added a commit
to ydakuka/rubocop-rails
that referenced
this issue
Jan 25, 2025
…nested File.join
ydakuka
added a commit
to ydakuka/rubocop-rails
that referenced
this issue
Jan 25, 2025
…nested File.join
ydakuka
added a commit
to ydakuka/rubocop-rails
that referenced
this issue
Jan 25, 2025
…nested File.join
ydakuka
added a commit
to ydakuka/rubocop-rails
that referenced
this issue
Jan 26, 2025
…nested File.join
ydakuka
added a commit
to ydakuka/rubocop-rails
that referenced
this issue
Jan 26, 2025
…nested File.join
7 tasks
ydakuka
added a commit
to ydakuka/rubocop-rails
that referenced
this issue
Jan 26, 2025
…nested File.join
ydakuka
added a commit
to ydakuka/rubocop-rails
that referenced
this issue
Feb 7, 2025
…nested File.join
ydakuka
added a commit
to ydakuka/rubocop-rails
that referenced
this issue
Feb 7, 2025
…nested File.join
ydakuka
added a commit
to ydakuka/rubocop-rails
that referenced
this issue
Feb 7, 2025
…nested File.join
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have the following code:
Expected behavior
Actual behavior
Occurred
Parser::Source::TreeRewriter detected clobbering
Steps to reproduce the problem
Prepare the following code.
Run
bundle exec rubocop -A --only Rails/FilePath
.RuboCop version
rubocop-rails uses the master branch.
The text was updated successfully, but these errors were encountered: