Class: Solargraph::Reek::Reporter
- Inherits:
-
Diagnostics::Base
- Object
- Diagnostics::Base
- Solargraph::Reek::Reporter
- Defined in:
- lib/solargraph-reek.rb
Instance Method Summary collapse
Instance Method Details
#diagnose(source, _api_map) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/solargraph-reek.rb', line 8 def diagnose source, _api_map examiner = ::Reek::Examiner.new(source.code.dup) examiner.smells.map { |w| warning_to_diagnostic(w) } rescue ::Reek::Errors::SyntaxError [] end |