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:
Enrique Miguel Mora Meza
2025-03-18 16:30:05 +04:00
committed by GitHub
parent c4cedeea3f
commit 59c996c5b8
7 changed files with 114 additions and 1 deletions

View File

@@ -758,6 +758,7 @@ Notes:
* `zeek`!!
* Zig
* `zigfmt`
* `zlint`
* `zls`
===============================================================================

View File

@@ -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*

View File

@@ -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|