mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-30 16:14:30 +08:00
Support for Zlint as Zig linter (#4923)
* feat: Add Zig zlint linter and handler for ALE * docs: Add zlint documentation to ALE Zig integration guide * docs: Updating docs for zlint support * tests: Adding tests for checking zlint executable and command * refactor: Move zlint configuration test to separate test file
This commit is contained in:
committed by
GitHub
parent
c4cedeea3f
commit
59c996c5b8
@@ -758,6 +758,7 @@ Notes:
|
||||
* `zeek`!!
|
||||
* Zig
|
||||
* `zigfmt`
|
||||
* `zlint`
|
||||
* `zls`
|
||||
|
||||
===============================================================================
|
||||
|
||||
@@ -5,7 +5,10 @@ ALE Zig Integration *ale-zig-options*
|
||||
===============================================================================
|
||||
Integration Information
|
||||
|
||||
Currently, the only supported linter for zig is zls.
|
||||
The following linters are supported for Zig:
|
||||
|
||||
* zlint (https://github.com/DonIsaac/zlint)
|
||||
* zls (https://github.com/zigtools/zls)
|
||||
|
||||
|
||||
===============================================================================
|
||||
@@ -19,6 +22,16 @@ g:ale_zig_zigfmt_executable *g:ale_zig_zigfmt_executable*
|
||||
The executable that will be run for the `zig fmt` fixer.
|
||||
|
||||
|
||||
===============================================================================
|
||||
zlint *ale-zig-zlint*
|
||||
|
||||
g:ale_zig_zlint_executable *g:ale_zig_zlint_executable*
|
||||
*b:ale_zig_zlint_executable*
|
||||
Type: |String|
|
||||
Default: `'zlint'`
|
||||
|
||||
This variable can be modified to change the executable path for `zlint`.
|
||||
|
||||
===============================================================================
|
||||
zls *ale-zig-zls*
|
||||
|
||||
|
||||
@@ -3546,6 +3546,7 @@ documented in additional help files.
|
||||
zeek..................................|ale-zeek-zeek|
|
||||
zig.....................................|ale-zig-options|
|
||||
zigfmt................................|ale-zig-zigfmt|
|
||||
zlint.................................|ale-zig-zlint|
|
||||
zls...................................|ale-zig-zls|
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user