We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 92f433c + 048ef56 commit af24792Copy full SHA for af24792
lib/rubocop/cop/rails/file_path.rb
@@ -62,7 +62,7 @@ def on_dstr(node)
62
return unless last_child_source.start_with?('.') || last_child_source.include?(File::SEPARATOR)
63
return if last_child_source.start_with?(':')
64
65
- register_offense(node, require_to_s: true)
+ register_offense(node, require_to_s: false)
66
end
67
68
def on_send(node)
@@ -106,7 +106,6 @@ def string_with_slash?(node)
106
def register_offense(node, require_to_s:)
107
line_range = node.loc.column...node.loc.last_column
108
source_range = source_range(processed_source.buffer, node.first_line, line_range)
109
- require_to_s = false if node.dstr_type?
110
111
message = build_message(require_to_s)
112
0 commit comments