[devtools] config sync

This commit is contained in:
GitHub Action 2019-10-21 08:36:55 +00:00
parent 1ed0d6de0f
commit 206d8549ce
3 changed files with 37 additions and 9 deletions

View File

@ -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/"

View File

@ -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

View File

@ -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)