File: test_bicep_bicep_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 (30 lines) | stat: -rw-r--r-- 1,046 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
29
30
Before:
  runtime ale_linters/bicep/bicep.vim

After:
  call ale#linter#Reset()

Execute(The bicep handler should handle basic warnings):
  AssertEqual
  \ [
  \   {
  \     'filename': '/tmp/nvimhxqs5D/1/dns.bicep',
  \     'lnum': 7,
  \     'col': 10,
  \     'type': 'W',
  \     'code': 'no-unused-existing-resources',
  \     'text': 'Existing resource "asdasd" is declared but never used. [https://aka.ms/bicep/linter/no-unused-existing-resources]',
  \   },
  \   {
  \     'filename': '/tmp/nvimhxqs5D/1/dns.bicep',
  \     'lnum': 106,
  \     'col': 6,
  \     'type': 'E',
  \     'code': 'BCP019',
  \     'text': 'Expected a new line character at this location.',
  \   },
  \ ],
  \ ale_linters#bicep#bicep#Handle(1, [
  \   '/tmp/nvimhxqs5D/1/dns.bicep(7,10) : Warning no-unused-existing-resources: Existing resource "asdasd" is declared but never used. [https://aka.ms/bicep/linter/no-unused-existing-resources]',
  \   '/tmp/nvimhxqs5D/1/dns.bicep(106,6) : Error BCP019: Expected a new line character at this location.',
  \ ])