firmafon/ruby-fogbugz

View on GitHub
lib/ruby_fogbugz/interface.rb

Summary

Maintainability
A
0 mins
Test Coverage

Inherit from RuntimeError instead of Exception.
Open

  class AuthenticationException < Exception
Severity: Minor
Found in lib/ruby_fogbugz/interface.rb by rubocop

This cop looks for error classes inheriting from Exception and its standard library subclasses, excluding subclasses of StandardError. It is configurable to suggest using either RuntimeError (default) or StandardError instead.

Example: EnforcedStyle: runtime_error (default)

# bad

class C < Exception; end

# good

class C < RuntimeError; end

Example: EnforcedStyle: standard_error

# bad

class C < Exception; end

# good

class C < StandardError; end

There are no issues that match your filters.

Category
Status