[devtools] config sync
This commit is contained in:
parent
1ed0d6de0f
commit
206d8549ce
|
@ -2,11 +2,6 @@
|
|||
|
||||
version: "2"
|
||||
|
||||
prepare:
|
||||
fetch:
|
||||
- url: "https://raw.githubusercontent.com/dry-rb/devtools/master/.rubocop.yml"
|
||||
path: ".rubocop.yml"
|
||||
|
||||
exclude_patterns:
|
||||
- "benchmarks/"
|
||||
- "examples/"
|
||||
|
|
39
.rubocop.yml
39
.rubocop.yml
|
@ -1,6 +1,11 @@
|
|||
# this file is managed by dry-rb/devtools project
|
||||
|
||||
AllCops:
|
||||
TargetRubyVersion: 2.4
|
||||
|
||||
Style/EachWithObject:
|
||||
Enabled: false
|
||||
|
||||
Style/StringLiterals:
|
||||
Enabled: true
|
||||
EnforcedStyle: single_quotes
|
||||
|
@ -17,6 +22,9 @@ Style/StabbyLambdaParentheses:
|
|||
Style/FormatString:
|
||||
Enabled: false
|
||||
|
||||
Style/Documentation:
|
||||
Enabled: false
|
||||
|
||||
Layout/SpaceInLambdaLiteral:
|
||||
Enabled: false
|
||||
|
||||
|
@ -37,9 +45,7 @@ Metrics/AbcSize:
|
|||
Max: 20
|
||||
|
||||
Metrics/BlockLength:
|
||||
Enabled: true
|
||||
Exclude:
|
||||
- 'spec/**/*_spec.rb'
|
||||
Enabled: false
|
||||
|
||||
Metrics/CyclomaticComplexity:
|
||||
Enabled: true
|
||||
|
@ -51,3 +57,30 @@ Lint/BooleanSymbol:
|
|||
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
|
||||
|
|
|
@ -10,4 +10,4 @@ Project maintainers have the right and responsibility to remove, edit, or reject
|
|||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct](https://www.contributor-covenant.org/version/1/4/code-of-conduct)
|
||||
This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.4.0, available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct](https://www.contributor-covenant.org/version/1/4/code-of-conduct)
|
||||
|
|
Loading…
Reference in New Issue