All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 runtime ale_linters/ruby/steep.vim
5 call ale#linter#Reset()
7 Execute(The steep handler should parse lines correctly):
14 \ 'text': 'Method parameters are incompatible with declaration `(untyped, untyped, *untyped, **untyped) { () -> untyped } -> untyped`',
15 \ 'code': 'Ruby::MethodArityMismatch',
22 \ 'text': 'Cannot find implementation of method `::Frobz::FooBarBaz#method_name`',
23 \ 'code': 'Ruby::MethodDefinitionMissing',
30 \ 'text': 'Cannot find implementation of method `::Frobz::FooBarBaz#method_name`',
31 \ 'code': 'Ruby::MethodDefinitionMissing',
38 \ 'text': 'Cannot find implementation of method `::Frobz::FooBarBaz#method_name`',
39 \ 'code': 'Ruby::MethodDefinitionMissing',
43 \ ale_linters#ruby#steep#HandleOutput(347, [
44 \ '# Type checking files:',
46 \ '...............................................................................................................................F..........F.F...F.',
48 \ 'lib/frobz/foobar_baz.rb:400:17: [error] Method parameters are incompatible with declaration `(untyped, untyped, *untyped, **untyped) { () -> untyped } -> untyped`',
49 \ '│ Diagnostic ID: Ruby::MethodArityMismatch',
51 \ '└ def frobz(obj, suffix, *args, &block)',
52 \ ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~',
54 \ 'lib/frobz/foobar_baz.rb:20:8: [warning] Cannot find implementation of method `::Frobz::FooBarBaz#method_name`',
55 \ '│ Diagnostic ID: Ruby::MethodDefinitionMissing',
57 \ '└ class FooBarBaz',
60 \ 'lib/frobz/foobar_baz.rb:30:8: [information] Cannot find implementation of method `::Frobz::FooBarBaz#method_name`',
61 \ '│ Diagnostic ID: Ruby::MethodDefinitionMissing',
63 \ '└ class FooBarBaz',
66 \ 'lib/frobz/foobar_baz.rb:40:8: [hint] Cannot find implementation of method `::Frobz::FooBarBaz#method_name`',
67 \ '│ Diagnostic ID: Ruby::MethodDefinitionMissing',
69 \ '└ class FooBarBaz',
72 \ 'Detected 4 problems from 1 file',
75 Execute(The steep handler should handle when files are checked and no offenses are found):
78 \ ale_linters#ruby#steep#HandleOutput(347, [
79 \ '# Type checking files:',
81 \ '.............................................................................................................................................',
83 \ 'No type error detected. 🧉',
86 Execute(The steep handler should handle when no files are checked):
89 \ ale_linters#ruby#steep#HandleOutput(347, [
90 \ '# Type checking files:',
94 \ 'No type error detected. 🧉',
97 Execute(The steep handler should handle empty output):
98 AssertEqual [], ale_linters#ruby#steep#HandleOutput(347, [''])
99 AssertEqual [], ale_linters#ruby#steep#HandleOutput(347, [])