From 206d8549ce4a48676a1335225b02f1efcda4715d Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 21 Oct 2019 08:36:55 +0000 Subject: [PATCH] [devtools] config sync --- .codeclimate.yml | 5 ----- .rubocop.yml | 39 ++++++++++++++++++++++++++++++++++++--- CODE_OF_CONDUCT.md | 2 +- 3 files changed, 37 insertions(+), 9 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index 5e4e055..5693897 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -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/" diff --git a/.rubocop.yml b/.rubocop.yml index 3ec8927..6febf90 100644 --- a/.rubocop.yml +++ b/.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 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 870b734..20feae4 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -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)