Enable Rails/Validation Rubocop cop
Cop checks for the use of old-style attribute validation. Supports autocorrection which was run to fix the files concerned Closes #1414
This commit is contained in:
parent
e2a7e396a2
commit
e5587d42a2
11 changed files with 33 additions and 46 deletions
|
|
@ -160,6 +160,10 @@ Lint/Void:
|
|||
|
||||
#################### Rails ###############################
|
||||
|
||||
# Enforce Rails specific style
|
||||
# Enforce Rails specific style
|
||||
Rails:
|
||||
Enabled: true
|
||||
|
||||
# Avoid use of old-style attribute validation
|
||||
Rails/Validation:
|
||||
Enabled: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue