Enable the Layout/EmptyLinesAroundAccessModifier cop
This commit is contained in:
parent
f496f1adab
commit
aac75106ef
2 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,7 @@ Layout/EmptyLines:
|
|||
Enabled: true
|
||||
|
||||
Layout/EmptyLinesAroundAccessModifier:
|
||||
Enabled: false
|
||||
Enabled: true
|
||||
|
||||
Layout/EmptyLinesAroundBeginBody:
|
||||
Enabled: true
|
||||
|
|
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue