mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-24 21:11:28 +08:00
Add support for Microsoft's DSL Bicep (#4310)
* Add support for Microsoft's DSL Bicep The compilation command 'bicep build' catches compilation errors as well as providing some lint warnings. Repository for Bicep: https://github.com/Azure/bicep * Different null file on Windows & hardcode commands
This commit is contained in:
30
test/handler/test_bicep_bicep_handler.vader
Normal file
30
test/handler/test_bicep_bicep_handler.vader
Normal file
@@ -0,0 +1,30 @@
|
||||
Before:
|
||||
runtime ale_linters/bicep/bicep.vim
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(The cmake_lint handler should handle basic warnings):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ '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]',
|
||||
\ },
|
||||
\ {
|
||||
\ '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.',
|
||||
\ ])
|
||||
Reference in New Issue
Block a user