Created
May 31, 2017 10:22
-
-
Save ota42y/f177cc7f53d82eea987d4103b0c782fb to your computer and use it in GitHub Desktop.
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
def badName(test) | |
puts test and false | |
end | |
badName(42) |
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
bad_code.rb:1:5: C: Use snake_case for method names. | |
def badName(test) | |
^^^^^^^ | |
bad_code.rb:2:1: C: Use 2 (not 8) spaces for indentation. | |
puts test and false | |
^^^^^^^^ | |
bad_code.rb:2:19: C: Use && instead of and. | |
puts test and false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment