-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update rubocop dependency to >= 0.25
- Loading branch information
Showing
9 changed files
with
46 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,60 @@ | ||
AllCops: | ||
Include: | ||
- 'Gemfile' | ||
- 'Rakefile' | ||
- 'naught.gemspec' | ||
|
||
# Avoid long parameter lists | ||
ParameterLists: | ||
Max: 4 | ||
CountKeywordArgs: true | ||
|
||
ClassLength: | ||
Max: 150 # TODO: Lower to 100 | ||
Metrics/BlockNesting: | ||
Max: 2 | ||
|
||
LineLength: | ||
Max: 90 # TODO: Lower to 80 | ||
Metrics/LineLength: | ||
AllowURI: true | ||
Max: 90 # TODO: Lower to 80 | ||
|
||
MethodLength: | ||
Metrics/MethodLength: | ||
CountComments: false | ||
Max: 21 # TODO: Lower to 15 | ||
Max: 21 # TODO: Lower to 15 | ||
|
||
# Avoid more than `Max` levels of nesting. | ||
BlockNesting: | ||
Max: 2 | ||
Metrics/ParameterLists: | ||
Max: 4 | ||
CountKeywordArgs: true | ||
|
||
# Align with the style guide. | ||
CollectionMethods: | ||
Style/AccessModifierIndentation: | ||
EnforcedStyle: outdent | ||
|
||
Style/ClassVars: | ||
Enabled: false | ||
|
||
Style/CollectionMethods: | ||
PreferredMethods: | ||
map: 'collect' | ||
reduce: 'inject' | ||
find: 'detect' | ||
find_all: 'select' | ||
|
||
# Disable documentation checking until a class needs to be documented once | ||
Documentation: | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
# Enforce Ruby 1.8-compatible hash syntax | ||
HashSyntax: | ||
EnforcedStyle: hash_rockets | ||
Style/DotPosition: | ||
EnforcedStyle: trailing | ||
|
||
# No spaces inside hash literals | ||
SpaceInsideHashLiteralBraces: | ||
EnforcedStyle: no_space | ||
|
||
# Allow dots at the end of lines | ||
DotPosition: | ||
Style/DoubleNegation: | ||
Enabled: false | ||
|
||
# Don't require magic comment at the top of every file | ||
Encoding: | ||
Style/EachWithObject: | ||
Enabled: false | ||
|
||
# Enforce outdenting of access modifiers (i.e. public, private, protected) | ||
AccessModifierIndentation: | ||
EnforcedStyle: outdent | ||
|
||
EmptyLinesAroundAccessModifier: | ||
Enabled: true | ||
|
||
# Align ends correctly | ||
EndAlignment: | ||
AlignWith: variable | ||
|
||
# Indentation of when/else | ||
CaseIndentation: | ||
IndentWhenRelativeTo: end | ||
IndentOneStep: false | ||
|
||
Lambda: | ||
Style/Encoding: | ||
Enabled: false | ||
|
||
RaiseArgs: | ||
EnforcedStyle: compact | ||
Style/HashSyntax: | ||
EnforcedStyle: hash_rockets | ||
|
||
TrailingComma: | ||
Style/Lambda: | ||
Enabled: false | ||
|
||
MethodName: | ||
Style/MethodName: | ||
Enabled: false | ||
|
||
ClassVars: | ||
Enabled: false | ||
Style/RaiseArgs: | ||
EnforcedStyle: compact | ||
|
||
CaseEquality: | ||
Enabled: false | ||
Style/SpaceInsideHashLiteralBraces: | ||
EnforcedStyle: no_space | ||
|
||
PercentLiteralDelimiters: | ||
PreferredDelimiters: | ||
'%': () | ||
'%i': () | ||
'%q': () | ||
'%Q': () | ||
'%r': '{}' | ||
'%s': () | ||
'%w': '[]' | ||
'%W': '[]' | ||
'%x': () | ||
Style/TrailingComma: | ||
EnforcedStyleForMultiline: 'comma' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ bundler_args: --without development | |
language: ruby | ||
rvm: | ||
- 1.8.7 | ||
- 1.9.2 | ||
- 1.9.3 | ||
- 2.0.0 | ||
- 2.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters