From f7c7992a1daf1108b754068cf98f92a4bad37525 Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Fri, 27 Mar 2015 03:04:18 +0200 Subject: [PATCH] update rubocop file --- .rubocop.yml | 10 ++++++++++ .rubocop_todo.yml | 25 +++++-------------------- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 7e6d1c9..c9a8511 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,4 +1,14 @@ inherit_from: .rubocop_todo.yml +AllCops: + Excludes: + - bin/** + - db/** + - config/** + Metrics/LineLength: Enabled: false + +#http://viget.com/extend/just-use-double-quoted-ruby-strings +#Style/StringLiterals: +# EnforcedStyle: double_quotes diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 6954c12..c26d4e4 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,5 +1,5 @@ # This configuration was generated by `rubocop --auto-gen-config` -# on 2015-03-26 22:36:26 +0200 using RuboCop version 0.29.1. +# on 2015-03-27 03:03:45 +0200 using RuboCop version 0.29.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 @@ -16,26 +16,16 @@ Metrics/BlockNesting: # Offense count: 2 # Configuration parameters: CountComments. Metrics/ClassLength: - Max: 483 + Max: 471 # Offense count: 6 Metrics/CyclomaticComplexity: Max: 18 -# Offense count: 81 -# Configuration parameters: AllowURI, URISchemes. -Metrics/LineLength: - Max: 213 - -# Offense count: 26 +# Offense count: 27 # Configuration parameters: CountComments. Metrics/MethodLength: - Max: 145 - -# Offense count: 1 -# Configuration parameters: CountKeywordArgs. -Metrics/ParameterLists: - Max: 6 + Max: 147 # Offense count: 6 Metrics/PerceivedComplexity: @@ -75,7 +65,7 @@ Style/GlobalVars: Style/GuardClause: Enabled: false -# Offense count: 18 +# Offense count: 17 # Configuration parameters: MaxLineLength. Style/IfUnlessModifier: Enabled: false @@ -85,11 +75,6 @@ Style/IfUnlessModifier: Style/Next: Enabled: false -# Offense count: 1 -# Configuration parameters: NamePrefix, NamePrefixBlacklist. -Style/PredicateName: - Enabled: false - # Offense count: 5 # Configuration parameters: MaxSlashes. Style/RegexpLiteral: