Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add limited rubocop config and TODO config * Remove trailing whitespaces and blanklines * Add rubocop rake task; upd travis.yml
- Loading branch information
1 parent
4af4a00
commit 2cb2357
Showing
14 changed files
with
188 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
AllCops: | ||
DisabledByDefault: true | ||
TargetRubyVersion: 1.9.3 | ||
DisplayCopNames: true | ||
StyleGuideCopsOnly: false | ||
Exclude: | ||
- 'tmp/**/*' | ||
- 'gemfiles/vendor/**/*' | ||
- 'vendor/**/*' | ||
- 'Rakefile' | ||
|
||
Layout/SpaceAfterColon: | ||
Enabled: true | ||
|
||
Layout/SpaceAroundKeyword: | ||
Enabled: true | ||
|
||
Layout/SpaceBeforeFirstArg: | ||
Enabled: true | ||
|
||
Layout/SpaceInsideParens: | ||
Enabled: true | ||
|
||
Layout/Tab: | ||
Enabled: true | ||
|
||
Layout/TrailingBlankLines: | ||
Enabled: true | ||
|
||
Layout/TrailingWhitespace: | ||
Enabled: true | ||
|
||
Lint/Debugger: | ||
Enabled: true | ||
|
||
Style/MethodDefParentheses: | ||
Enabled: true | ||
|
||
Style/MethodName: | ||
Enabled: true | ||
EnforcedStyle: snake_case | ||
Exclude: | ||
- 'test/**/**' | ||
|
||
Style/TrailingCommaInArguments: | ||
Enabled: true | ||
|
||
Style/VariableName: | ||
Enabled: true | ||
|
||
Performance/Count: | ||
Enabled: true | ||
|
||
Performance/Detect: | ||
Enabled: true | ||
|
||
Performance/EndWith: | ||
Enabled: true | ||
|
||
Performance/FlatMap: | ||
Enabled: true | ||
|
||
Performance/HashEachMethods: | ||
Enabled: true | ||
|
||
Performance/RangeInclude: | ||
Enabled: true | ||
|
||
Performance/RedundantMerge: | ||
Enabled: true | ||
|
||
Performance/RedundantSortBy: | ||
Enabled: true | ||
|
||
Performance/ReverseEach: | ||
Enabled: true | ||
|
||
Performance/Sample: | ||
Enabled: true | ||
|
||
Performance/Size: | ||
Enabled: true | ||
|
||
Performance/StartWith: | ||
Enabled: true | ||
|
||
Performance/TimesMap: | ||
Enabled: true |
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 |
---|---|---|
@@ -0,0 +1,86 @@ | ||
inherit_from: "./.rubocop.yml" | ||
|
||
# 29 offenses | ||
Layout/SpaceAroundOperators: | ||
Enabled: true | ||
|
||
# 21 offenses | ||
Layout/SpaceInsideBlockBraces: | ||
Enabled: true | ||
|
||
# 16 offenses | ||
Layout/SpaceAroundEqualsInParameterDefault: | ||
Enabled: true | ||
EnforcedStyle: no_space | ||
|
||
# 15 offenses | ||
Layout/SpaceBeforeBlockBraces: | ||
Enabled: true | ||
|
||
# 15 offenses | ||
Layout/SpaceInsideHashLiteralBraces: | ||
Enabled: true | ||
EnforcedStyle: no_space | ||
|
||
# 8 offenses | ||
Layout/EmptyLines: | ||
Enabled: true | ||
|
||
# 4 offenses | ||
Layout/EmptyLinesAroundClassBody: | ||
Enabled: true | ||
Exclude: | ||
- 'test/**/*' | ||
|
||
# 6 offenses | ||
Layout/EmptyLinesAroundMethodBody: | ||
Enabled: true | ||
|
||
# 5 offenses | ||
Layout/EmptyLinesAroundModuleBody: | ||
Enabled: true | ||
|
||
# 5 offenses | ||
Layout/IndentationWidth: | ||
Enabled: true | ||
|
||
# 3 offenses | ||
Layout/AccessModifierIndentation: | ||
EnforcedStyle: indent | ||
|
||
# 2 offenses | ||
Style/WhileUntilModifier: | ||
Enabled: true | ||
|
||
# 1 offense | ||
Style/TernaryParentheses: | ||
Enabled: true | ||
|
||
# >200 offenses for 80 | ||
# 58 offenses for 100 | ||
# 18 offenses for 120 | ||
Metrics/LineLength: | ||
Max: 120 | ||
AllowHeredoc: true | ||
AllowURI: true | ||
URISchemes: | ||
- http | ||
- https | ||
IgnoreCopDirectives: false | ||
IgnoredPatterns: [] | ||
|
||
# 1 offense | ||
Metrics/ParameterLists: | ||
Max: 5 | ||
|
||
# 1 offense | ||
Performance/RedundantMatch: | ||
Enabled: true | ||
|
||
# 1 offense | ||
Performance/RedundantBlockCall: | ||
Enabled: true | ||
|
||
# 1 offense | ||
Performance/StringReplacement: | ||
Enabled: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,4 +80,3 @@ def self.daemon_start(dir, argv) | |
end | ||
end | ||
end | ||
|
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 |
---|---|---|
|
@@ -32,4 +32,3 @@ def start(launcher) | |
end | ||
end | ||
end | ||
|
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 |
---|---|---|
|
@@ -11,4 +11,3 @@ | |
on_restart { 1 } | ||
after_worker_boot { 1 } | ||
lowlevel_error_handler { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,3 @@ | |
else | ||
exit 1 | ||
end | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,4 +179,3 @@ def test_user_port_wins_over_config | |
end | ||
end | ||
end | ||
|
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