update rubocop file

This commit is contained in:
Petr Korolev 2015-03-27 03:04:18 +02:00
parent 591927ef6c
commit f7c7992a1d
2 changed files with 15 additions and 20 deletions

View File

@ -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

View File

@ -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: