rubocop: Ensure there is a space following 'if' when used
This commit is contained in:
parent
be1d9eafe5
commit
83e952492e
@ -6,12 +6,6 @@
|
||||
# Note that changes in the inspected code, or installation of new
|
||||
# versions of RuboCop, may require this file to be generated again.
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Layout/SpaceAroundKeyword:
|
||||
Exclude:
|
||||
- '_contrib/comparelinks.rb'
|
||||
|
||||
# Offense count: 67
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowForAlignment.
|
||||
|
||||
@ -35,7 +35,7 @@ def fetchlinks()
|
||||
link = link[0].to_s.gsub(/^(https?:\/\/(www\.)?bitcoin\.org)?\//, '/')
|
||||
next if (link.match(/^#|^http:\/\/www.meetup.com\//))
|
||||
|
||||
if(!link.match(/^https?:\/\/|^\/[^\/]|^mailto:/))
|
||||
if (!link.match(/^https?:\/\/|^\/[^\/]|^mailto:/))
|
||||
link = File.dirname(file.sub(WORKDIR + '/_site', '')) + '/' + File.basename(link)
|
||||
end
|
||||
links[link] = "0"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user