90 lines
1.3 KiB
YAML
90 lines
1.3 KiB
YAML
require:
|
|
- rubocop-performance
|
|
- rubocop-rails
|
|
|
|
Rails:
|
|
Enabled: true
|
|
|
|
AllCops:
|
|
TargetRubyVersion: 2.5
|
|
TargetRailsVersion: 5.2
|
|
NewCops: enable
|
|
|
|
Metrics:
|
|
Enabled: false
|
|
|
|
Metrics/ParameterLists:
|
|
Enabled: true
|
|
CountKeywordArgs: false
|
|
|
|
Layout/LineLength:
|
|
Max: 140
|
|
|
|
Rails/ApplicationJob:
|
|
Enabled: false
|
|
|
|
Rails/ApplicationRecord:
|
|
Enabled: false
|
|
|
|
Rails/CreateTableWithTimestamps:
|
|
Enabled: false
|
|
|
|
Rails/HelperInstanceVariable:
|
|
Enabled: false
|
|
|
|
Rails/SkipsModelValidations:
|
|
Enabled: false
|
|
|
|
Performance/ChainArrayAllocation:
|
|
Enabled: true
|
|
|
|
Style/AutoResourceCleanup:
|
|
Enabled: true
|
|
|
|
Style/ExpandPathArguments:
|
|
Enabled: true
|
|
Exclude:
|
|
- test/**/*
|
|
|
|
Style/FrozenStringLiteralComment:
|
|
Enabled: true
|
|
Exclude:
|
|
- '/**/*.rsb'
|
|
|
|
Style/OptionHash:
|
|
Enabled: true
|
|
SuspiciousParamNames:
|
|
- options
|
|
- api_options
|
|
- opts
|
|
- args
|
|
- params
|
|
- parameters
|
|
- settings
|
|
Exclude:
|
|
- lib/redmine_messenger/patches/*.rb
|
|
|
|
Style/ReturnNil:
|
|
Enabled: true
|
|
|
|
Style/UnlessLogicalOperators:
|
|
Enabled: true
|
|
|
|
Style/MethodCallWithArgsParentheses:
|
|
Enabled: true
|
|
AllowParenthesesInMultilineCall: true
|
|
AllowParenthesesInChaining: true
|
|
EnforcedStyle: omit_parentheses
|
|
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
Style/HashTransformKeys:
|
|
Enabled: false
|
|
|
|
Style/HashTransformValues:
|
|
Enabled: false
|
|
|
|
Naming/VariableNumber:
|
|
Enabled: false
|