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 inherit_from: .rubocop_todo.yml
AllCops:
Excludes:
- bin/**
- db/**
- config/**
Metrics/LineLength: Metrics/LineLength:
Enabled: false 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` # 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 # The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base. # one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new # Note that changes in the inspected code, or installation of new
@ -16,26 +16,16 @@ Metrics/BlockNesting:
# Offense count: 2 # Offense count: 2
# Configuration parameters: CountComments. # Configuration parameters: CountComments.
Metrics/ClassLength: Metrics/ClassLength:
Max: 483 Max: 471
# Offense count: 6 # Offense count: 6
Metrics/CyclomaticComplexity: Metrics/CyclomaticComplexity:
Max: 18 Max: 18
# Offense count: 81 # Offense count: 27
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 213
# Offense count: 26
# Configuration parameters: CountComments. # Configuration parameters: CountComments.
Metrics/MethodLength: Metrics/MethodLength:
Max: 145 Max: 147
# Offense count: 1
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 6
# Offense count: 6 # Offense count: 6
Metrics/PerceivedComplexity: Metrics/PerceivedComplexity:
@ -75,7 +65,7 @@ Style/GlobalVars:
Style/GuardClause: Style/GuardClause:
Enabled: false Enabled: false
# Offense count: 18 # Offense count: 17
# Configuration parameters: MaxLineLength. # Configuration parameters: MaxLineLength.
Style/IfUnlessModifier: Style/IfUnlessModifier:
Enabled: false Enabled: false
@ -85,11 +75,6 @@ Style/IfUnlessModifier:
Style/Next: Style/Next:
Enabled: false Enabled: false
# Offense count: 1
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
Style/PredicateName:
Enabled: false
# Offense count: 5 # Offense count: 5
# Configuration parameters: MaxSlashes. # Configuration parameters: MaxSlashes.
Style/RegexpLiteral: Style/RegexpLiteral: