Rubocop rules
This commit is contained in:
24
.rubocop/rails.yml
Normal file
24
.rubocop/rails.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
# Cross-Repository conguration for Cops of the rubocop-rails extension
|
||||
|
||||
Rails/BelongsTo:
|
||||
# This is about changing "required: true" to "optional: false". Wording of
|
||||
# this warning is a bit unfortunate, as it suggest the option is not needed
|
||||
# at all:
|
||||
#
|
||||
# C: [Correctable] Rails/BelongsTo: You specified required: true, in Rails
|
||||
# > 5.0 the required option is deprecated and you want to use optional:
|
||||
# false. In most configurations, this is the default and you can omit this
|
||||
# option altogether
|
||||
#
|
||||
# This is only true, if framework defaults for 5.0 are loaded or special
|
||||
# option config.active_record.belongs_to_required_by_default is set to true.
|
||||
#
|
||||
# None of those are set in MDMS, so lets remove this cop, to avoid pushing
|
||||
# someone to remove the "required: true" and changing the behaviour by
|
||||
# mistake.
|
||||
Enabled: false
|
||||
|
||||
Rails/RedundantPresenceValidationOnBelongsTo:
|
||||
# See comment for Rails/BelongsTo. Our setting for default is different
|
||||
# than defaults in Rails 5+ applications. This should not be enabled.
|
||||
Enabled: false
|
||||
Reference in New Issue
Block a user