From bbcb4b9f8fb2b6eb6774752176a14be75528aabf Mon Sep 17 00:00:00 2001 From: Piotr Solnica Date: Sat, 28 Dec 2019 12:53:41 +0100 Subject: [PATCH] Add .rubocop.yml --- .gitignore | 2 -- .rubocop.yml | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+), 2 deletions(-) create mode 100644 .rubocop.yml diff --git a/.gitignore b/.gitignore index b6dadb0..ceec3f8 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,4 @@ *.o *.a mkmf.log -.rubocop.yml -.rubocop_todo.yml diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..8433595 --- /dev/null +++ b/.rubocop.yml @@ -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