tram-rb/tram-examiner

View on GitHub
lib/tram/examiner/results.rb

Summary

Maintainability
A
0 mins
Test Coverage

Do not return a value in initialize.
Open

      return super if subject.is_a?(self.class.subject)
Severity: Minor
Found in lib/tram/examiner/results.rb by rubocop

This cop checks for the use of a return with a value in a context where the value will be ignored. (initialize and setter methods)

Example:

# bad
def initialize
  foo
  return :qux if bar?
  baz
end

def foo=(bar)
  return 42
end

Example:

# good
def initialize
  foo
  return if bar?
  baz
end

def foo=(bar)
  return
end

There are no issues that match your filters.

Category
Status