From 893f9363e01856f6273da74305a9d01cb6585710 Mon Sep 17 00:00:00 2001 From: Tim Sharpe Date: Sun, 3 Feb 2019 15:50:07 +1100 Subject: [PATCH] (rubocop) Defer Metrics cop changes for now --- .rubocop.yml | 4 +++- .rubocop_todo.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 .rubocop_todo.yml diff --git a/.rubocop.yml b/.rubocop.yml index 0430a26..1895d8e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,4 +1,5 @@ ---- +inherit_from: .rubocop_todo.yml + AllCops: TargetRubyVersion: 2.4 @@ -12,6 +13,7 @@ Style/TrailingCommaInArrayLiteral: EnforcedStyleForMultiline: comma Style/TrailingCommaInArguments: EnforcedStyleForMultiline: comma + Layout/AlignHash: EnforcedHashRocketStyle: table Layout/IndentHash: diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml new file mode 100644 index 0000000..cb32ba8 --- /dev/null +++ b/.rubocop_todo.yml @@ -0,0 +1,46 @@ +# This configuration was generated by +# `rubocop --auto-gen-config` +# on 2019-02-03 15:31:20 +1100 using RuboCop version 0.63.1. +# The point is for the user to remove these configuration records +# one by one as the offenses are removed from the code base. +# Note that changes in the inspected code, or installation of new +# versions of RuboCop, may require this file to be generated again. + +# Offense count: 8 +Metrics/AbcSize: + Max: 319 + +# Offense count: 25 +# Configuration parameters: CountComments, ExcludedMethods. +# ExcludedMethods: refine +Metrics/BlockLength: + Max: 278 + +# Offense count: 1 +# Configuration parameters: CountBlocks. +Metrics/BlockNesting: + Max: 4 + +# Offense count: 4 +# Configuration parameters: CountComments. +Metrics/ClassLength: + Max: 394 + +# Offense count: 4 +Metrics/CyclomaticComplexity: + Max: 55 + +# Offense count: 13 +# Configuration parameters: CountComments, ExcludedMethods. +Metrics/MethodLength: + Max: 391 + +# Offense count: 3 +Metrics/PerceivedComplexity: + Max: 63 + +# Offense count: 193 +# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. +# URISchemes: http, https +Metrics/LineLength: + Max: 285