Rubocop: Style/CaseIndentation

- Indent when as deep as case
This commit is contained in:
Pat Hawks 2016-01-04 11:15:37 -08:00
parent 2c9a349f9a
commit f6fd9014ba
No known key found for this signature in database
GPG Key ID: F1746FF5F18B3D1B
4 changed files with 35 additions and 33 deletions

View File

@ -13,7 +13,8 @@ module Jekyll
def update_deprecated_types(set) def update_deprecated_types(set)
return set unless set.key?('scope') && set['scope'].key?('type') return set unless set.key?('scope') && set['scope'].key?('type')
set['scope']['type'] = case set['scope']['type'] set['scope']['type'] =
case set['scope']['type']
when 'page' when 'page'
Deprecator.defaults_deprecate_type('page', 'pages') Deprecator.defaults_deprecate_type('page', 'pages')
'pages' 'pages'

View File

@ -164,7 +164,8 @@ module Jekyll
end end
# Replace each character sequence with a hyphen # Replace each character sequence with a hyphen
re = case mode re =
case mode
when 'raw' when 'raw'
SLUGIFY_RAW_REGEXP SLUGIFY_RAW_REGEXP
when 'default' when 'default'