Class: EagerEye::Detectors::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/eager_eye/detectors/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.default_severityObject



13
14
15
# File 'lib/eager_eye/detectors/base.rb', line 13

def default_severity
  :warning
end

.detector_nameObject

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/eager_eye/detectors/base.rb', line 9

def detector_name
  raise NotImplementedError, "Subclasses must implement .detector_name"
end

Instance Method Details

#detect(_ast, _file_path) ⇒ Object

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/eager_eye/detectors/base.rb', line 18

def detect(_ast, _file_path)
  raise NotImplementedError, "Subclasses must implement #detect"
end