summaryrefslogtreecommitdiff
path: root/test/linter
diff options
context:
space:
mode:
authorLinda_pp <rhysd@users.noreply.github.com>2022-02-04 16:29:28 +0900
committerGitHub <noreply@github.com>2022-02-04 16:29:28 +0900
commit0d529d9b948d21065789c5670500cbfba5386f6f (patch)
treecc5b73feea8a88bc0c8b8a6f7e829b2f464fb29a /test/linter
parentd1e2aaf85dc81bad223065eec474d9f090fec70e (diff)
downloadale-0d529d9b948d21065789c5670500cbfba5386f6f.zip
Add `naga` linter for WGSL support (#4047)
* Add WGSL support using `naga` command * Add documents for wgsl * Add test for `naga` linter * Separate naga handler callback to hanlder/naga.vim
Diffstat (limited to 'test/linter')
-rw-r--r--test/linter/test_naga.vader10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/linter/test_naga.vader b/test/linter/test_naga.vader
new file mode 100644
index 00000000..bf91604b
--- /dev/null
+++ b/test/linter/test_naga.vader
@@ -0,0 +1,10 @@
+Before:
+ call ale#assert#SetUpLinterTest('wgsl', 'naga')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The naga command should be customizable):
+ let g:ale_wgsl_naga_executable = '/path/to/naga'
+ AssertLinter '/path/to/naga',
+ \ ale#Escape('/path/to/naga') . ' --stdin-file-path %s'