Skip to content

Instantly share code, notes, and snippets.

@kylog
Created March 24, 2016 16:29
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 kylog/824eb374dffb518b7f3e to your computer and use it in GitHub Desktop.
Save kylog/824eb374dffb518b7f3e to your computer and use it in GitHub Desktop.
[5] puppet git:(maint/point-hound-at-rubocop) rubocop --only Lint/RescueException
/Users/kylo/devel/puppet/.rubocop.yml: Lint/SpaceBeforeFirstArg has the wrong namespace - should be Style
Inspecting 978 files
W......................W.............................................W....................................................................................................................................
.............................................................................W............................................................................................................................
..........................................................................................................................................................................................................
.......................................................................................................................................................................................W..................
................................................W.....W.........................................................................................................W......W..
Offenses:
install.rb:373:3: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception => e
^^^^^^^^^^^^^^^^^^^^^
install.rb:387:3: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception => e
^^^^^^^^^^^^^^^^^^^^^
ext/windows/service/daemon.rb:84:7: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception => e
^^^^^^^^^^^^^^^^^^^^^
ext/windows/service/daemon.rb:90:3: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception => e
^^^^^^^^^^^^^^^^^^^^^
ext/windows/service/daemon.rb:150:5: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception => e
^^^^^^^^^^^^^^^^^^^^^
ext/windows/service/daemon.rb:166:5: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception => e
^^^^^^^^^^^^^^^^^^^^^
ext/windows/service/daemon.rb:181:5: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception => e
^^^^^^^^^^^^^^^^^^^^^
lib/puppet/configurer/fact_handler.rb:23:5: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception => detail
^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/puppet/indirector/ldap.rb:45:5: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception => detail
^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/puppet/transaction/resource_harness.rb:129:5: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception => detail
^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/puppet/util/autoload.rb:72:7: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception => detail
^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/puppet/util/command_line/trollop.rb:535:7: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception
^^^^^^^^^^^^^^^^
lib/puppet/util.rb:548:3: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception => err
^^^^^^^^^^^^^^^^^^^^^^^
util/rspec_grouper:94:5: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception
^^^^^^^^^^^^^^^^
util/rspec_grouper:99:9: W: Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
rescue Exception
^^^^^^^^^^^^^^^^
978 files inspected, 15 offenses detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment