-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The change in the Dockerfile is motivated by this issue and it's suggested workaround: ku1ik/rainbow#48 I generated the docs outside of docker because the rake task doesn't currently work inside docker. I think that's fine. The `Registry` change is to maintain parity with an internal RuboCop refactoring that took place as part of this update.
- Loading branch information
1 parent
1eec00b
commit dbaeb02
Showing
76 changed files
with
1,208 additions
and
72 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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
This cop checks for assignments in the conditions of | ||
if/while/until. | ||
|
||
### Example: | ||
|
||
# bad | ||
|
||
if some_var = true | ||
do_something | ||
end | ||
|
||
### Example: | ||
|
||
# good | ||
|
||
if some_var == true | ||
do_something | ||
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
This cop checks for calls to debugger or pry. | ||
|
||
### Example: | ||
|
||
# bad (ok during development) | ||
|
||
# using pry | ||
def some_method | ||
binding.pry | ||
do_something | ||
end | ||
|
||
### Example: | ||
|
||
# bad (ok during development) | ||
|
||
# using byebug | ||
def some_method | ||
byebug | ||
do_something | ||
end | ||
|
||
### Example: | ||
|
||
# good | ||
|
||
def some_method | ||
do_something | ||
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 |
---|---|---|
@@ -1,13 +1,33 @@ | ||
This cop checks whether the end keywords of method definitions are | ||
aligned properly. | ||
|
||
Two modes are supported through the AlignWith configuration | ||
Two modes are supported through the EnforcedStyleAlignWith configuration | ||
parameter. If it's set to `start_of_line` (which is the default), the | ||
`end` shall be aligned with the start of the line where the `def` | ||
keyword is. If it's set to `def`, the `end` shall be aligned with the | ||
`def` keyword. | ||
|
||
### Example: | ||
|
||
# bad | ||
|
||
private def foo | ||
end | ||
|
||
### Example: | ||
|
||
# EnforcedStyleAlignWith: start_of_line (default) | ||
|
||
# good | ||
|
||
private def foo | ||
end | ||
|
||
### Example: | ||
|
||
# EnforcedStyleAlignWith: def | ||
|
||
# good | ||
|
||
private def foo | ||
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
This cop checks for uses of the deprecated class method usages. | ||
|
||
### Example: | ||
|
||
# bad | ||
|
||
File.exists?(some_path) | ||
|
||
### Example: | ||
|
||
# good | ||
|
||
File.exist?(some_path) |
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
Oops, something went wrong.