Skip to content

Commit

Permalink
Add basic rubocop configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Nov 20, 2014
1 parent 8f84096 commit 614973f
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,13 @@
inherit_from: .rubocop_todo.yml

Style/HashSyntax:
EnforcedStyle: hash_rockets

Style/StringLiterals:
EnforcedStyle: double_quotes

Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes

Style/SignalException:
EnforcedStyle: only_raise
190 changes: 190 additions & 0 deletions .rubocop_todo.yml
@@ -0,0 +1,190 @@
# This configuration was generated by `rubocop --auto-gen-config`
# on 2014-11-08 22:49:55 +0900 using RuboCop version 0.27.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: 1
Lint/AmbiguousOperator:
Enabled: false

# Offense count: 22
Lint/AmbiguousRegexpLiteral:
Enabled: false

# Offense count: 1
Lint/Debugger:
Enabled: false

# Offense count: 1
Lint/ElseLayout:
Enabled: false

# Offense count: 1
# Configuration parameters: AlignWith, SupportedStyles.
Lint/EndAlignment:
Enabled: false

# Offense count: 8
Lint/HandleExceptions:
Enabled: false

# Offense count: 1
Lint/ShadowingOuterLocalVariable:
Enabled: false

# Offense count: 1
Lint/UselessAccessModifier:
Enabled: false

# Offense count: 2
Lint/Void:
Enabled: false

# Offense count: 286
Metrics/AbcSize:
Max: 296

# Offense count: 13
Metrics/BlockNesting:
Max: 5

# Offense count: 24
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 656

# Offense count: 70
Metrics/CyclomaticComplexity:
Max: 86

# Offense count: 1866
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 431

# Offense count: 292
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 260

# Offense count: 1
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 8

# Offense count: 66
Metrics/PerceivedComplexity:
Max: 86

# Offense count: 23
Style/AccessorMethodName:
Enabled: false

# Offense count: 3
Style/AsciiComments:
Enabled: false

# Offense count: 11
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
Style/CaseIndentation:
Enabled: false

# Offense count: 30
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/ClassAndModuleChildren:
Enabled: false

# Offense count: 418
Style/Documentation:
Enabled: false

# Offense count: 1
Style/DoubleNegation:
Enabled: false

# Offense count: 2
Style/EachWithObject:
Enabled: false

# Offense count: 7
# Configuration parameters: Exclude.
Style/FileName:
Enabled: false

# Offense count: 4
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/For:
Enabled: false

# Offense count: 69
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/FormatString:
Enabled: false

# Offense count: 63
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false

# Offense count: 122
# Configuration parameters: MaxLineLength.
Style/IfUnlessModifier:
Enabled: false

# Offense count: 22
Style/Lambda:
Enabled: false

# Offense count: 1
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/MethodName:
Enabled: false

# Offense count: 3
Style/MultilineTernaryOperator:
Enabled: false

# Offense count: 7
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
Style/Next:
Enabled: false

# Offense count: 17
Style/OneLineConditional:
Enabled: false

# Offense count: 21
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
Style/PredicateName:
Enabled: false

# Offense count: 3
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/RaiseArgs:
Enabled: false

# Offense count: 11
# Configuration parameters: MaxSlashes.
Style/RegexpLiteral:
Enabled: false

# Offense count: 12
Style/RescueModifier:
Enabled: false

# Offense count: 1
Style/SelfAssignment:
Enabled: false

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, Whitelist.
Style/TrivialAccessors:
Enabled: false

# Offense count: 5
# Configuration parameters: MaxLineLength.
Style/WhileUntilModifier:
Enabled: false

0 comments on commit 614973f

Please sign in to comment.