From 8181ee6a1d2ceb9b9618fda266cb8e25a4ebd9fe Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 11 Jun 2020 14:08:23 -0500 Subject: [PATCH] Update rubocop config. --- .rubocop.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index db2025ce1..001265032 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,6 +3,7 @@ require: AllCops: TargetRubyVersion: 2.7.0 + NewCops: enable Exclude: - "bin/*" - "node_modules/**/*" @@ -37,12 +38,18 @@ Layout/SpaceInsideBlockBraces: Layout/SpaceInsideHashLiteralBraces: Enabled: false +Metrics/AbcSize: + Enabled: false + Metrics/BlockNesting: Max: 4 Metrics/ClassLength: Max: 500 +Metrics/CyclomaticComplexity: + Max: 10 + Metrics/MethodLength: Max: 100 @@ -52,12 +59,18 @@ Metrics/ModuleLength: Metrics/ParameterLists: Max: 4 +Metrics/PerceivedComplexity: + Enabled: false + Lint/InheritException: EnforcedStyle: standard_error Naming/MethodParameterName: Enabled: false +Rails/HttpStatus: + EnforcedStyle: numeric + Style/AsciiComments: Enabled: false @@ -88,6 +101,27 @@ Style/HashSyntax: Style/IfUnlessModifier: Enabled: false +Style/MutableConstant: + Enabled: false + +Style/NumericPredicate: + Enabled: false + +Style/PercentLiteralDelimiters: + PreferredDelimiters: + "default": "[]" + "%r": "!!" + +Style/PerlBackrefs: + Enabled: false + +Style/RegexpLiteral: + EnforcedStyle: mixed + AllowInnerSlashes: false + +Style/SpecialGlobalVars: + Enabled: false + Style/StringLiterals: Enabled: false