summaryrefslogtreecommitdiff
path: root/test/linter/test_thriftcheck.vader
diff options
context:
space:
mode:
authorJon Parise <jon@indelible.org>2021-08-03 17:29:07 -0700
committerGitHub <noreply@github.com>2021-08-04 09:29:07 +0900
commit2dd9790281b8fa8e31b664629ecbb06de46c5a70 (patch)
treedc5bd1661f56fcce4703f977f1d396add819c616 /test/linter/test_thriftcheck.vader
parentfa032b1b7fde1cb00bfa3e16a0d3ebd37a7d8be4 (diff)
downloadale-2dd9790281b8fa8e31b664629ecbb06de46c5a70.zip
Add a thriftcheck linter (#3852)
ThriftCheck (https://github.com/pinterest/thriftcheck) is a linter for Thrift IDL files.
Diffstat (limited to 'test/linter/test_thriftcheck.vader')
-rw-r--r--test/linter/test_thriftcheck.vader21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/linter/test_thriftcheck.vader b/test/linter/test_thriftcheck.vader
new file mode 100644
index 00000000..0da3bd6d
--- /dev/null
+++ b/test/linter/test_thriftcheck.vader
@@ -0,0 +1,21 @@
+Before:
+ call ale#assert#SetUpLinterTest('thrift', 'thriftcheck')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default command should be correct):
+ AssertLinter 'thriftcheck', ale#Escape('thriftcheck')
+ \ . ' --stdin-filename %s %t'
+
+Execute(The executable should be configurable):
+ let b:ale_thrift_thriftcheck_executable = 'foobar'
+
+ AssertLinter 'foobar', ale#Escape('foobar')
+ \ . ' --stdin-filename %s %t'
+
+Execute(The string of options should be configurable):
+ let b:ale_thrift_thriftcheck_options = '--errors-only'
+
+ AssertLinter 'thriftcheck', ale#Escape('thriftcheck')
+ \ . ' --errors-only --stdin-filename %s %t'