Skip to content

Instantly share code, notes, and snippets.

@raycrawford
Created October 6, 2015 18:41
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 raycrawford/33e8a8175bbaf1a5ab09 to your computer and use it in GitHub Desktop.
Save raycrawford/33e8a8175bbaf1a5ab09 to your computer and use it in GitHub Desktop.
rubocop error
PS C:\Users\crawford.ra\Documents\chef\pg_chef_file-repo> rubocop .
Inspecting 4 files
...W
Offenses:
recipes/linux.rb:33:68: C: Don't use parentheses around the condition of an if.
fail "no #{node['platform']} Apache2 package_name defined." if (true)
^^^^^^
recipes/linux.rb:33:69: W: Literal true appeared in a condition.
fail "no #{node['platform']} Apache2 package_name defined." if (true)
^^^^
4 files inspected, 2 offenses detected
PS C:\Users\crawford.ra\Documents\chef\pg_chef_file-repo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment