2021-05-31 13:04:49 +00:00
|
|
|
# This is a config synced from dry-rb/template-gem repo
|
2019-10-16 09:40:47 +00:00
|
|
|
|
2017-10-05 12:12:54 +00:00
|
|
|
AllCops:
|
2022-01-13 16:37:03 +00:00
|
|
|
TargetRubyVersion: 2.7
|
2021-06-03 13:47:50 +00:00
|
|
|
NewCops: enable
|
2020-03-08 19:13:45 +00:00
|
|
|
Exclude:
|
2021-07-21 19:44:29 +00:00
|
|
|
- benchmarks/*.rb
|
2020-03-08 19:13:45 +00:00
|
|
|
- spec/support/coverage.rb
|
|
|
|
- spec/support/warnings.rb
|
2020-09-26 15:19:00 +00:00
|
|
|
- spec/support/rspec_options.rb
|
2020-03-08 19:13:45 +00:00
|
|
|
- Gemfile.devtools
|
|
|
|
- "*.gemspec"
|
2019-10-16 09:40:47 +00:00
|
|
|
|
2020-06-23 06:32:46 +00:00
|
|
|
Layout/SpaceAroundMethodCallOperator:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Layout/SpaceInLambdaLiteral:
|
2020-01-09 08:49:11 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Layout/MultilineMethodCallIndentation:
|
|
|
|
Enabled: true
|
|
|
|
EnforcedStyle: indented
|
2020-01-09 08:49:11 +00:00
|
|
|
|
2020-06-23 06:32:46 +00:00
|
|
|
Layout/FirstArrayElementIndentation:
|
2020-03-10 10:41:23 +00:00
|
|
|
EnforcedStyle: consistent
|
|
|
|
|
2020-03-10 21:09:55 +00:00
|
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
|
|
Enabled: true
|
|
|
|
EnforcedStyle: no_space
|
|
|
|
EnforcedStyleForEmptyBraces: no_space
|
|
|
|
|
2020-06-23 06:32:46 +00:00
|
|
|
Layout/LineLength:
|
|
|
|
Max: 100
|
2020-01-09 08:49:11 +00:00
|
|
|
Exclude:
|
2021-06-12 18:55:11 +00:00
|
|
|
- "spec/**/*.rb"
|
2020-01-09 08:49:11 +00:00
|
|
|
|
2021-06-03 11:05:16 +00:00
|
|
|
Lint/AmbiguousBlockAssociation:
|
|
|
|
Enabled: true
|
|
|
|
# because 'expect { foo }.to change { bar }' is fine
|
|
|
|
Exclude:
|
|
|
|
- "spec/**/*.rb"
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Lint/BooleanSymbol:
|
2020-01-09 08:49:11 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2021-02-26 09:36:25 +00:00
|
|
|
Lint/ConstantDefinitionInBlock:
|
|
|
|
Exclude:
|
2021-06-12 18:55:11 +00:00
|
|
|
- "spec/**/*.rb"
|
2021-02-26 09:36:25 +00:00
|
|
|
|
2020-06-23 06:32:46 +00:00
|
|
|
Lint/RaiseException:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Lint/StructNewOverride:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Lint/SuppressedException:
|
|
|
|
Exclude:
|
|
|
|
- "spec/spec_helper.rb"
|
|
|
|
|
2021-07-21 19:24:39 +00:00
|
|
|
Lint/LiteralAsCondition:
|
|
|
|
Exclude:
|
|
|
|
- "spec/**/*.rb"
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Naming/PredicateName:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Naming/FileName:
|
2020-01-09 08:49:11 +00:00
|
|
|
Exclude:
|
2020-03-10 21:09:55 +00:00
|
|
|
- "lib/*-*.rb"
|
2020-01-09 08:49:11 +00:00
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Naming/MethodName:
|
2020-01-09 08:49:11 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2021-06-03 11:06:20 +00:00
|
|
|
Naming/MethodParameterName:
|
2021-07-18 08:51:00 +00:00
|
|
|
Enabled: false
|
2021-06-03 11:05:16 +00:00
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Naming/MemoizedInstanceVariableName:
|
2020-01-04 11:10:17 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Metrics/MethodLength:
|
2017-10-05 12:12:54 +00:00
|
|
|
Enabled: false
|
2019-10-16 09:40:47 +00:00
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Metrics/ClassLength:
|
2019-10-16 09:40:47 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Metrics/BlockLength:
|
2019-10-16 09:40:47 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Metrics/AbcSize:
|
|
|
|
Max: 25
|
2019-10-16 09:40:47 +00:00
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Metrics/CyclomaticComplexity:
|
|
|
|
Enabled: true
|
|
|
|
Max: 12
|
2019-10-16 09:40:47 +00:00
|
|
|
|
2020-06-23 06:32:46 +00:00
|
|
|
Style/ExponentialNotation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/HashEachMethods:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/HashTransformKeys:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/HashTransformValues:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/AccessModifierDeclarations:
|
2020-01-04 11:10:17 +00:00
|
|
|
Enabled: false
|
2019-10-16 09:40:47 +00:00
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/Alias:
|
|
|
|
Enabled: true
|
|
|
|
EnforcedStyle: prefer_alias_method
|
2019-10-16 09:40:47 +00:00
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/AsciiComments:
|
2020-02-02 17:13:34 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/BlockDelimiters:
|
2020-02-14 09:48:09 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/ClassAndModuleChildren:
|
2020-01-09 08:49:11 +00:00
|
|
|
Exclude:
|
2021-06-12 18:55:11 +00:00
|
|
|
- "spec/**/*.rb"
|
2019-10-16 09:40:47 +00:00
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/ConditionalAssignment:
|
2017-10-05 12:12:54 +00:00
|
|
|
Enabled: false
|
2019-10-16 09:40:47 +00:00
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/DateTime:
|
2019-10-16 09:40:47 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/Documentation:
|
2020-01-04 11:10:17 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/EachWithObject:
|
2019-10-16 09:40:47 +00:00
|
|
|
Enabled: false
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/FormatString:
|
2017-10-05 12:12:54 +00:00
|
|
|
Enabled: false
|
2019-11-03 12:43:41 +00:00
|
|
|
|
2022-01-17 04:01:39 +00:00
|
|
|
Style/FormatStringToken:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/GuardClause:
|
|
|
|
Enabled: false
|
2020-01-09 08:49:11 +00:00
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/IfUnlessModifier:
|
2019-11-03 12:43:41 +00:00
|
|
|
Enabled: false
|
2019-12-14 10:47:48 +00:00
|
|
|
|
2020-06-24 08:55:41 +00:00
|
|
|
Style/Lambda:
|
2020-06-24 09:03:58 +00:00
|
|
|
Enabled: false
|
2020-06-24 08:55:41 +00:00
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/LambdaCall:
|
2019-12-14 10:47:48 +00:00
|
|
|
Enabled: false
|
2019-12-14 14:36:04 +00:00
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/ParallelAssignment:
|
2019-12-14 14:36:04 +00:00
|
|
|
Enabled: false
|
2020-01-09 08:49:11 +00:00
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/StabbyLambdaParentheses:
|
|
|
|
Enabled: false
|
2020-01-09 08:49:11 +00:00
|
|
|
|
2020-03-10 10:41:23 +00:00
|
|
|
Style/StringLiterals:
|
2020-01-09 08:49:11 +00:00
|
|
|
Enabled: true
|
2020-03-10 21:26:45 +00:00
|
|
|
EnforcedStyle: double_quotes
|
|
|
|
ConsistentQuotesInMultiline: false
|
|
|
|
|
|
|
|
Style/StringLiteralsInInterpolation:
|
|
|
|
Enabled: true
|
|
|
|
EnforcedStyle: double_quotes
|
2020-03-10 10:41:23 +00:00
|
|
|
|
|
|
|
Style/SymbolArray:
|
|
|
|
Exclude:
|
2021-06-12 18:55:11 +00:00
|
|
|
- "spec/**/*.rb"
|
2020-03-10 10:41:23 +00:00
|
|
|
|
|
|
|
Style/TrailingUnderscoreVariable:
|
|
|
|
Enabled: false
|
2020-09-11 07:51:34 +00:00
|
|
|
|
|
|
|
Style/MultipleComparison:
|
|
|
|
Enabled: false
|
2021-06-12 18:34:47 +00:00
|
|
|
|
|
|
|
Style/Next:
|
|
|
|
Enabled: false
|
2021-06-12 18:36:40 +00:00
|
|
|
|
2021-07-18 08:26:37 +00:00
|
|
|
Style/AccessorGrouping:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-07-18 08:51:00 +00:00
|
|
|
Style/EmptyLiteral:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-07-18 12:47:49 +00:00
|
|
|
Style/Semicolon:
|
|
|
|
Exclude:
|
|
|
|
- "spec/**/*.rb"
|
|
|
|
|
2021-07-21 19:13:39 +00:00
|
|
|
Style/HashAsLastArrayItem:
|
|
|
|
Exclude:
|
|
|
|
- "spec/**/*.rb"
|
|
|
|
|
2021-07-18 13:20:19 +00:00
|
|
|
Style/CaseEquality:
|
|
|
|
Exclude:
|
2021-07-18 13:23:33 +00:00
|
|
|
- "lib/dry/monads/**/*.rb"
|
2021-07-21 17:53:49 +00:00
|
|
|
- "lib/dry/struct/**/*.rb"
|
|
|
|
- "lib/dry/types/**/*.rb"
|
2021-07-21 17:58:31 +00:00
|
|
|
- "spec/**/*.rb"
|
2021-07-18 13:20:19 +00:00
|
|
|
|
2021-07-21 20:53:06 +00:00
|
|
|
Style/ExplicitBlockArgument:
|
|
|
|
Exclude:
|
|
|
|
- "lib/dry/types/**/*.rb"
|
|
|
|
|
|
|
|
Style/CombinableLoops:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-07-21 21:04:35 +00:00
|
|
|
Style/EmptyElse:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-09-21 13:12:42 +00:00
|
|
|
Style/DoubleNegation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/MultilineBlockChain:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-01-20 03:55:41 +00:00
|
|
|
Style/NumberedParametersLimit:
|
|
|
|
Max: 2
|
|
|
|
|
2021-06-12 18:36:40 +00:00
|
|
|
Lint/UnusedBlockArgument:
|
|
|
|
Exclude:
|
2021-06-12 18:55:11 +00:00
|
|
|
- "spec/**/*.rb"
|
2021-06-12 18:36:40 +00:00
|
|
|
|
2021-07-18 08:51:00 +00:00
|
|
|
Lint/Debugger:
|
|
|
|
Exclude:
|
|
|
|
- "bin/console"
|
|
|
|
|
|
|
|
Lint/BinaryOperatorWithIdenticalOperands:
|
|
|
|
Exclude:
|
|
|
|
- "spec/**/*.rb"
|
|
|
|
|
2021-06-12 18:36:40 +00:00
|
|
|
Metrics/ParameterLists:
|
|
|
|
Exclude:
|
2021-06-12 18:55:11 +00:00
|
|
|
- "spec/**/*.rb"
|
2021-06-12 18:42:01 +00:00
|
|
|
|
|
|
|
Lint/EmptyBlock:
|
|
|
|
Exclude:
|
2021-06-12 18:55:11 +00:00
|
|
|
- "spec/**/*.rb"
|
2021-06-12 18:42:01 +00:00
|
|
|
|
2021-07-18 08:51:00 +00:00
|
|
|
Lint/UselessMethodDefinition:
|
|
|
|
Exclude:
|
|
|
|
- "spec/**/*.rb"
|
|
|
|
|
2021-07-18 11:17:22 +00:00
|
|
|
Lint/SelfAssignment:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-07-21 18:36:57 +00:00
|
|
|
Lint/EmptyClass:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-06-12 18:42:01 +00:00
|
|
|
Naming/ConstantName:
|
|
|
|
Exclude:
|
|
|
|
- "spec/**/*.rb"
|
2021-07-18 08:51:00 +00:00
|
|
|
|
|
|
|
Naming/VariableNumber:
|
|
|
|
Exclude:
|
|
|
|
- "spec/**/*.rb"
|
2021-07-19 07:21:43 +00:00
|
|
|
|
|
|
|
Naming/BinaryOperatorParameterName:
|
|
|
|
Enabled: false
|