rubocop: Ensure there are no spaces in block parameters

This commit is contained in:
Will Binns 2019-01-12 06:26:39 -06:00 committed by Will Binns
parent a695caded4
commit be1d9eafe5
2 changed files with 4 additions and 12 deletions

View File

@ -6,14 +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: 8
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleInsidePipes.
# SupportedStylesInsidePipes: space, no_space
Layout/SpaceAroundBlockParameters:
Exclude:
- '_plugins/glossary.rb'
# Offense count: 1
# Cop supports --auto-correct.
Layout/SpaceAroundKeyword:

View File

@ -130,12 +130,12 @@ module Jekyll
end
devsearches_json = []
site.config["devsearches"].each {| cat, items |
site.config["devsearches"].each {|cat, items|
devsearches_data_item = {}
if cat == "Glossary"
items.each {| lang, list |
list.each {| el |
items.each {|lang, list|
list.each {|el|
flat = el.flatten
devsearches_json.push({
"label" => flat[0],
@ -147,7 +147,7 @@ module Jekyll
# puts list
}
else
items.each {| el |
items.each {|el|
flat = el.flatten
devsearches_json.push({
"label" => flat[0],