Class: SolargraphInlayHintTest
- Inherits:
-
Solargraph::Diagnostics::Base
- Object
- Solargraph::Diagnostics::Base
- SolargraphInlayHintTest
- Defined in:
- lib/solargraph_inlay_hint_test.rb
Instance Method Summary collapse
Instance Method Details
#diagnose(source, _api_map) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/solargraph_inlay_hint_test.rb', line 6 def diagnose(source, _api_map) return [] if source.code.empty? || source.code.start_with?('# a_test_line:') [ { range: Solargraph::Range.from_to(0, 0, 0, source.code.lines[0].length), severity: Solargraph::Diagnostics::Severities::WARNING, source: 'TestLine', message: 'File does not start with a_test_line.' } ] end |