File: test_fecs_handler.vader

package info (click to toggle)
vim-ale 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,764 kB
  • sloc: sh: 499; python: 311; perl: 31; makefile: 4; xml: 4; javascript: 1
file content (35 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Before:
  runtime autoload/ale/handlers/fecs.vim

After:
  call ale#linter#Reset()

Execute(fecs should parse lines correctly):
  AssertEqual
  \ [
  \   {
  \     'lnum': 20,
  \     'col': 25,
  \     'text': 'Unexpected console statement.',
  \     'code': 'no-console',
  \     'type': 'W',
  \   },
  \   {
  \     'lnum': 24,
  \     'col': 36,
  \     'text': 'Missing radix parameter.',
  \     'code': 'radix',
  \     'type': 'E',
  \   },
  \   {
  \     'lnum': 25,
  \     'col': 6,
  \     'text': 'Missing static property value.',
  \     'type': 'E',
  \   },
  \ ],
  \ ale#handlers#fecs#Handle(347, [
  \   'fecs  WARN → line 20, col 25: Unexpected console statement.     (no-console)',
  \   'fecs ERROR → line 24, col 36: Missing radix parameter.  (radix)',
  \   'fecs ERROR → line 25, col 6: Missing static property value.',
  \ ])