File: test_rpmlint_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 (33 lines) | stat: -rw-r--r-- 895 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
Before:
  runtime ale_linters/spec/rpmlint.vim

After:
  call ale#linter#Reset()

Execute(The rpmlint handler should parse error messages correctly):
  AssertEqual
  \ [
  \   {
  \     'bufnr': 42,
  \     'lnum': 23,
  \     'text': 'macro-in-comment %version',
  \     'type': 'W',
  \   },
  \   {
  \     'bufnr': 42,
  \     'lnum': 17,
  \     'text': 'hardcoded-library-path in %_prefix/lib/%name',
  \     'type': 'E',
  \   },
  \   {
  \     'bufnr': 42,
  \     'lnum': 1,
  \     'text': 'specfile-error warning: bogus date in %changelog: Mon Oct 1 2005 - Foo',
  \     'type': 'E',
  \   },
  \ ],
  \ ale_linters#spec#rpmlint#Handle(42, [
  \   'cyrus-imapd.spec:23: W: macro-in-comment %version',
  \   'cyrus-imapd.spec:17: E: hardcoded-library-path in %_prefix/lib/%name',
  \   'apcupsd.spec: E: specfile-error warning: bogus date in %changelog: Mon Oct 1 2005 - Foo',
  \ ])