additionals/.rubocop.yml

123 lines
1.8 KiB
YAML
Raw Normal View History

require:
- rubocop-performance
- rubocop-rails
2019-04-09 09:32:01 +03:00
Rails:
Enabled: true
AllCops:
TargetRubyVersion: 2.6
TargetRailsVersion: 5.2
2020-04-16 14:00:07 +03:00
NewCops: enable
Metrics/AbcSize:
2019-12-25 10:45:16 +03:00
Enabled: false
Metrics/BlockLength:
2019-12-25 10:45:16 +03:00
Enabled: false
Metrics/ParameterLists:
Enabled: true
CountKeywordArgs: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
2020-09-25 11:42:03 +03:00
Max: 25
2021-03-24 10:08:17 +03:00
Style/HashConversion:
Enabled: true
Layout/LineLength:
2015-10-09 19:20:04 +03:00
Max: 140
Metrics/MethodLength:
Max: 60
Metrics/ModuleLength:
Enabled: false
2015-12-06 14:48:33 +03:00
2015-10-09 19:20:04 +03:00
Metrics/PerceivedComplexity:
2018-11-17 10:18:46 +03:00
Max: 25
2015-10-09 19:20:04 +03:00
Rails/ApplicationJob:
Enabled: false
2021-09-14 20:58:08 +03:00
Lint/AmbiguousOperatorPrecedence:
Enabled: false
Rails/ApplicationRecord:
2015-10-10 15:11:02 +03:00
Enabled: false
Rails/CreateTableWithTimestamps:
Enabled: false
Rails/HelperInstanceVariable:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
Rails/Output:
Enabled: true
Exclude:
- 'db/migrate/*'
Performance/ChainArrayAllocation:
Enabled: true
Style/AutoResourceCleanup:
Enabled: true
2016-10-19 14:30:14 +03:00
Style/ExpandPathArguments:
Enabled: true
Exclude:
- additionals.gemspec
- test/**/*
Style/FrozenStringLiteralComment:
Enabled: true
Exclude:
- '/**/*.rsb'
Style/OptionHash:
Enabled: true
SuspiciousParamNames:
- options
- api_options
- opts
- args
- params
- parameters
- settings
Exclude:
- lib/additionals/patches/*.rb
2018-07-15 11:07:31 +03:00
Style/ReturnNil:
Enabled: true
Style/UnlessLogicalOperators:
Enabled: true
Style/MethodCallWithArgsParentheses:
Enabled: true
AllowParenthesesInMultilineCall: true
AllowParenthesesInChaining: true
EnforcedStyle: omit_parentheses
Style/Documentation:
2018-07-15 11:07:31 +03:00
Enabled: false
2020-03-09 16:51:54 +03:00
Style/HashTransformValues:
Enabled: false
Naming/VariableNumber:
2020-12-25 15:31:19 +03:00
Enabled: true
Exclude:
- 'test/**/*'
2020-12-01 14:01:34 +03:00
Style/StringConcatenation:
Exclude:
- 'app/views/additionals/_select2_ajax_call.*'