Slang linter for Verilog. (#4713)

This commit is contained in:
AlvinRolling
2024-02-22 10:18:04 +08:00
committed by GitHub
parent 1c5b84f375
commit 52c6146751
8 changed files with 112 additions and 4 deletions

View 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'