Skip to content

Commit 22e595d

Browse files
committed
Move LineLength cop from Metrics to Layout department
Follow rubocop/rubocop#7542. This PR suppresses the following warning. ```console % bundle exec rake (snip) Running RuboCop... spec/project_spec.rb: Metrics/LineLength has the wrong namespace - should be Layout Inspecting 130 files ```
1 parent 1fc2d47 commit 22e595d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/project_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
it 'has a valid URL' do
6666
issues.each do |issue|
6767
number = issue[:number].gsub(/\D/, '')
68-
pattern = %r{^https://github\.com/rubocop-hq/rubocop-rails/(?:issues|pull)/#{number}$} # rubocop:disable Metrics/LineLength
68+
pattern = %r{^https://github\.com/rubocop-hq/rubocop-rails/(?:issues|pull)/#{number}$} # rubocop:disable Layout/LineLength
6969
expect(issue[:url]).to match(pattern)
7070
end
7171
end

0 commit comments

Comments
 (0)