summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-03-07 12:28:36 +0000
committerw0rp <devw0rp@gmail.com>2019-03-07 12:28:42 +0000
commit5505f2323dd7360dec7993542d20ef41c0178852 (patch)
tree205a1ff64ac7b3ea13a9da16f4b3e66800ab446c /test
parent6aef52f026117e49869080698e0e303d95e83a9a (diff)
downloadale-5505f2323dd7360dec7993542d20ef41c0178852.zip
Fix #2330 - Do not use getcurpos() to avoid changing curswant
Diffstat (limited to 'test')
-rwxr-xr-xtest/script/custom-linting-rules1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/script/custom-linting-rules b/test/script/custom-linting-rules
index 77e87db4..981a9459 100755
--- a/test/script/custom-linting-rules
+++ b/test/script/custom-linting-rules
@@ -106,6 +106,7 @@ check_errors 'let g:ale_\w\+_\w\+_args =' 'Name your option g:ale_<filetype>_<li
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 'getcurpos(' "Use getpos('.') instead of getcurpos() if you don't need curswant, to avoid a bug that changes curswant"
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"