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