Skip to content

Commit

Permalink
Add .rspec and .rubocop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed May 24, 2021
1 parent 23bc885 commit 6badbdd
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--color
--require spec_helper
--order random
--warnings
160 changes: 160 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
# this file is managed by dry-rb/devtools project

AllCops:
TargetRubyVersion: 2.7
Exclude:
- spec/support/coverage.rb
- spec/support/warnings.rb
- spec/support/rspec_options.rb
- Gemfile.devtools
- "*.gemspec"

Layout/SpaceAroundMethodCallOperator:
Enabled: false

Layout/SpaceInLambdaLiteral:
Enabled: false

Layout/MultilineMethodCallIndentation:
Enabled: true
EnforcedStyle: indented

Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent

Layout/SpaceInsideHashLiteralBraces:
Enabled: true
EnforcedStyle: no_space
EnforcedStyleForEmptyBraces: no_space

Layout/LineLength:
Max: 100
Exclude:
- "spec/**/*_spec.rb"

Lint/BooleanSymbol:
Enabled: false

Lint/ConstantDefinitionInBlock:
Exclude:
- "spec/**/*_spec.rb"

Lint/RaiseException:
Enabled: false

Lint/StructNewOverride:
Enabled: false

Lint/SuppressedException:
Exclude:
- "spec/spec_helper.rb"

Naming/PredicateName:
Enabled: false

Naming/FileName:
Exclude:
- "lib/*-*.rb"

Naming/MethodName:
Enabled: false

Naming/MemoizedInstanceVariableName:
Enabled: false

Metrics/MethodLength:
Enabled: false

Metrics/ClassLength:
Enabled: false

Metrics/BlockLength:
Enabled: false

Metrics/AbcSize:
Max: 25

Metrics/CyclomaticComplexity:
Enabled: true
Max: 12

Style/ExponentialNotation:
Enabled: false

Style/HashEachMethods:
Enabled: false

Style/HashTransformKeys:
Enabled: false

Style/HashTransformValues:
Enabled: false

Style/AccessModifierDeclarations:
Enabled: false

Style/Alias:
Enabled: true
EnforcedStyle: prefer_alias_method

Style/AsciiComments:
Enabled: false

Style/BlockDelimiters:
Enabled: false

Style/ClassAndModuleChildren:
Exclude:
- "spec/**/*_spec.rb"

Style/ConditionalAssignment:
Enabled: false

Style/DateTime:
Enabled: false

Style/Documentation:
Enabled: false

Style/EachWithObject:
Enabled: false

Style/FormatString:
Enabled: false

Style/GuardClause:
Enabled: false

Style/IfUnlessModifier:
Enabled: false

Style/Lambda:
Enabled: false

Style/LambdaCall:
Enabled: false

Style/ParallelAssignment:
Enabled: false

Style/StabbyLambdaParentheses:
Enabled: false

Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
ConsistentQuotesInMultiline: false

Style/StringLiteralsInInterpolation:
Enabled: true
EnforcedStyle: double_quotes

Style/SymbolArray:
Exclude:
- "spec/**/*_spec.rb"

Style/TrailingUnderscoreVariable:
Enabled: false

Style/MultipleComparison:
Enabled: false

0 comments on commit 6badbdd

Please sign in to comment.