Enable the Layout/EmptyLinesAroundAccessModifier cop

This commit is contained in:
gregoirenovel 2017-06-12 15:35:21 +02:00
parent f496f1adab
commit aac75106ef
2 changed files with 2 additions and 1 deletions

View file

@ -46,7 +46,7 @@ Layout/EmptyLines:
Enabled: true
Layout/EmptyLinesAroundAccessModifier:
Enabled: false
Enabled: true
Layout/EmptyLinesAroundBeginBody:
Enabled: true

View file

@ -9,6 +9,7 @@ class SiretFormatValidator < ActiveModel::EachValidator
end
private
def luhn_checksum(value)
accum = 0
value.reverse.each_char.map(&:to_i).each_with_index do |digit, index|