Skip to content

Commit

Permalink
Add .rubocop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed Dec 28, 2019
1 parent feb2a41 commit bbcb4b9
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@
*.o
*.a
mkmf.log
.rubocop.yml
.rubocop_todo.yml

95 changes: 95 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# this file is managed by dry-rb/devtools project

AllCops:
TargetRubyVersion: 2.4

Style/EachWithObject:
Enabled: false

Style/StringLiterals:
Enabled: true
EnforcedStyle: single_quotes

Style/Alias:
Enabled: false

Style/LambdaCall:
Enabled: false

Style/StabbyLambdaParentheses:
Enabled: false

Style/FormatString:
Enabled: false

Style/Documentation:
Enabled: false

Layout/SpaceInLambdaLiteral:
Enabled: false

Layout/MultilineMethodCallIndentation:
Enabled: true
EnforcedStyle: indented

Metrics/LineLength:
Max: 100

Metrics/MethodLength:
Max: 22

Metrics/ClassLength:
Max: 150

Metrics/AbcSize:
Max: 20

Metrics/BlockLength:
Enabled: false

Metrics/CyclomaticComplexity:
Enabled: true
Max: 10

Lint/BooleanSymbol:
Enabled: false

Style/AccessModifierDeclarations:
Enabled: false

Style/BlockDelimiters:
Enabled: false

Layout/IndentFirstArrayElement:
EnforcedStyle: consistent

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

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

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

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

Style/ConditionalAssignment:
Enabled: false

Naming/MethodName:
Enabled: false

Style/AsciiComments:
Enabled: false

Style/DateTime:
Enabled: false

Style/IfUnlessModifier:
Enabled: false

0 comments on commit bbcb4b9

Please sign in to comment.