File: test_cmake_lint_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 (28 lines) | stat: -rw-r--r-- 682 bytes parent folder | download
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
Before:
  runtime ale_linters/cmake/cmake_lint.vim

After:
  call ale#linter#Reset()

Execute(The cmake_lint handler should handle basic warnings):
  AssertEqual
  \ [
  \   {
  \     'lnum': 126,
  \     'col': 0,
  \     'type': 'W',
  \     'code': 'C0301',
  \     'text': 'Line too long (136/80)',
  \   },
  \   {
  \     'lnum': 139,
  \     'col': 4,
  \     'type': 'W',
  \     'code': 'C0113',
  \     'text': 'Missing COMMENT in statement which allows it',
  \   },
  \ ],
  \ ale_linters#cmake#cmake_lint#Handle(1, [
  \   'CMakeLists.txt:126: [C0301] Line too long (136/80)',
  \   'CMakeLists.txt:139,04: [C0113] Missing COMMENT in statement which allows it',
  \ ])