mirror of
https://github.com/dense-analysis/ale
synced 2024-12-13 18:06:15 +00:00
4eeb4783d3
* Initial attempt at an rpmlint linter. * Add some basic documentation. * Play with indentation in the test file. * Another attempt to fix the rpmlint test. * Hopefully this does it.
30 lines
853 B
Plaintext
30 lines
853 B
Plaintext
Execute(The rpmlint handler should parse error messages correctly):
|
|
runtime ale_linters/spec/rpmlint.vim
|
|
|
|
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',
|
|
\ ])
|