Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix #1177] Partially fix Rails/FilePath autocorrect for root filepat…
…hs by marking cop as unsafe for autocorrection We correctly add a @safety annotation for Rails/FilePath since it can produce invalid code like this: # pass any string argument beginning with '/' to Rails.root.join and it will omit the Rails path (dev)> Rails.root.join '/' => #<Pathname:/> (dev)> Rails.root.join '//' => #<Pathname://> (dev)> Rails.root.join '/abc' => #<Pathname:/abc> (dev)> Rails.root.join '/abc/' => #<Pathname:/abc/>
- Loading branch information