Skip to content

Commit

Permalink
Suppress RuboCop's offenses
Browse files Browse the repository at this point in the history
Follow up to rubocop/rubocop#7908.
  • Loading branch information
koic committed May 31, 2020
1 parent 7f8dd1a commit 3af8086
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/project_spec.rb
Expand Up @@ -129,7 +129,7 @@
describe 'link to related issue' do
let(:issues) do
entries.map do |entry|
entry.match(/\[(?<number>[#\d]+)\]\((?<url>[^\)]+)\)/)
entry.match(/\[(?<number>[#\d]+)\]\((?<url>[^)]+)\)/)
end.compact
end

Expand Down Expand Up @@ -170,7 +170,7 @@
entry
.gsub(/`[^`]+`/, '``')
.sub(/^\*\s*(?:\[.+?\):\s*)?/, '')
.sub(/\s*\([^\)]+\)$/, '')
.sub(/\s*\([^)]+\)$/, '')
end
end

Expand All @@ -181,7 +181,7 @@
end

it 'ends with a punctuation' do
expect(bodies).to all(match(/[\.\!]$/))
expect(bodies).to all(match(/[.!]$/))
end
end
end
Expand Down

0 comments on commit 3af8086

Please sign in to comment.