Skip to content

Instantly share code, notes, and snippets.

@ota42y
Created May 31, 2017 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ota42y/f177cc7f53d82eea987d4103b0c782fb to your computer and use it in GitHub Desktop.
Save ota42y/f177cc7f53d82eea987d4103b0c782fb to your computer and use it in GitHub Desktop.
def badName(test)
puts test and false
end
badName(42)
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