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
|
Enabled: true
|
||||||
|
|
||||||
Layout/EmptyLinesAroundAccessModifier:
|
Layout/EmptyLinesAroundAccessModifier:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
|
||||||
Layout/EmptyLinesAroundBeginBody:
|
Layout/EmptyLinesAroundBeginBody:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
|
@ -9,6 +9,7 @@ class SiretFormatValidator < ActiveModel::EachValidator
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def luhn_checksum(value)
|
def luhn_checksum(value)
|
||||||
accum = 0
|
accum = 0
|
||||||
value.reverse.each_char.map(&:to_i).each_with_index do |digit, index|
|
value.reverse.each_char.map(&:to_i).each_with_index do |digit, index|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue