mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Slang linter for Verilog. (#4713)
This commit is contained in:
14
test/linter/test_slang.vader
Normal file
14
test/linter/test_slang.vader
Normal file
@@ -0,0 +1,14 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('verilog', 'slang')
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The default slang command should be correct):
|
||||
AssertLinter 'slang', 'slang -Weverything -I%s:h %t'
|
||||
|
||||
Execute(slang options should be configurable):
|
||||
" Additional args for the linter
|
||||
let g:ale_verilog_slang_options = '--define-macro DWIDTH=12'
|
||||
|
||||
AssertLinter 'slang', 'slang -Weverything -I%s:h --define-macro DWIDTH=12 %t'
|
||||
Reference in New Issue
Block a user