diff options
author | w0rp <devw0rp@gmail.com> | 2018-07-12 13:05:59 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-07-12 13:05:59 +0100 |
commit | ac0abc7c1fb1150edc4359e1a86c2a22e95de71c (patch) | |
tree | ebe0ff7cd658568a35900b0e39bbeaeab6c2d655 /test/script | |
parent | 6ef31073dd8f8d094ef7bc5e7152a576ef4f9064 (diff) | |
download | ale-ac0abc7c1fb1150edc4359e1a86c2a22e95de71c.zip |
Fix #1716 - Replace tempdir() with a wrapper to preserve TMPDIR
Diffstat (limited to 'test/script')
-rwxr-xr-x | test/script/custom-linting-rules | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/script/custom-linting-rules b/test/script/custom-linting-rules index 0d1a0fd1..51cf5680 100755 --- a/test/script/custom-linting-rules +++ b/test/script/custom-linting-rules @@ -87,6 +87,7 @@ check_errors $'\t' 'Use four spaces, not tabs' check_errors 'let g:ale_\w\+_\w\+_args =' 'Name your option g:ale_<filetype>_<lintername>_options instead' check_errors 'shellescape(' 'Use ale#Escape instead of shellescape' check_errors 'simplify(' 'Use ale#path#Simplify instead of simplify' +check_errors 'tempname(' 'Use ale#util#Tempname instead of tempname' check_errors "expand(['\"]%" "Use expand('#' . a:buffer . '...') instead. You might get a filename for the wrong buffer." check_errors 'getcwd()' "Do not use getcwd(), as it could run from the wrong buffer. Use expand('#' . a:buffer . ':p:h') instead." check_errors '==#' "Use 'is#' instead of '==#'. 0 ==# 'foobar' is true" |