Created
March 20, 2018 13:44
-
-
Save vierarb/37ad280545bbde78bb2943d58bb1e80a to your computer and use it in GitHub Desktop.
Proposed rubocop configuration for dmates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inherit_from: | |
- .rubocop_todo.yml | |
AllCops: | |
TargetRubyVersion: 2.3 | |
Include: | |
- '**/Gemfile' | |
- '**/Rakefile' | |
- '**/config.ru' | |
Exclude: | |
- 'vendor/**/*' | |
- 'db/**/*' | |
- 'bin/*' | |
- '.bundle/**/*' | |
Rails: | |
Enabled: true | |
Rails/UnknownEnv: | |
Environments: | |
- test | |
- development | |
- staging | |
- production | |
# Metrics/MethodLength: | |
# Max: 5 | |
Metrics/LineLength: | |
Max: 80 | |
Metrics/BlockLength: | |
Enabled: false | |
Layout/AlignHash: | |
EnforcedHashRocketStyle: table | |
EnforcedColonStyle: table | |
Layout/AlignParameters: | |
EnforcedStyle: with_fixed_indentation | |
Layout/ClassStructure: | |
Enabled: true | |
Categories: | |
module_inclusion: | |
- include | |
- prepend | |
- extend | |
attributes: | |
- attribute | |
- attr_reader | |
- attr_writer | |
- attr_accessor | |
associations: | |
- has_one | |
- has_many | |
- has_and_belongs_to_many | |
- belongs_to | |
delegations: | |
- delegate | |
enums: | |
- enum | |
hooks: | |
- before_validation | |
- after_validation | |
- before_save | |
- before_create | |
- after_create | |
- after_save | |
- after_commit | |
validations: | |
- validates | |
- validate | |
ExpectedOrder: | |
- module_inclusion | |
- constants | |
- attributes | |
- enums | |
- validations | |
- associations | |
- delegations | |
- hooks | |
- public_class_methods | |
- initializer | |
- public_methods | |
- protected_methods | |
- private_methods | |
Layout/DotPosition: | |
EnforcedStyle: leading | |
Layout/MultilineOperationIndentation: | |
EnforcedStyle: indented | |
Style/ClassAndModuleChildren: | |
Enabled: false | |
Style/ModuleFunction: | |
Enabled: false | |
Style/Documentation: | |
Enabled: false | |
Style/BlockComments: | |
Enabled: false | |
Style/GuardClause: | |
Enabled: false | |
Style/AndOr: | |
EnforcedStyle: conditionals |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment