summaryrefslogtreecommitdiff
path: root/custom-checks
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-11 00:31:42 +0100
committerw0rp <devw0rp@gmail.com>2017-08-11 00:31:42 +0100
commitd5ae3201a4128c9e7b1042e9ea40b7f13cf72a10 (patch)
tree86ca55a467b86555aaed7e83e0094a5def357bd1 /custom-checks
parentb1462ac66c10ed323c5148ecd8821c3a433ff403 (diff)
downloadale-d5ae3201a4128c9e7b1042e9ea40b7f13cf72a10.zip
Ban !=# and !=? from the codebase
Diffstat (limited to 'custom-checks')
-rwxr-xr-xcustom-checks4
1 files changed, 4 insertions, 0 deletions
diff --git a/custom-checks b/custom-checks
index 9a61eeed..aad16c9c 100755
--- a/custom-checks
+++ b/custom-checks
@@ -67,6 +67,8 @@ if (( FIX_ERRORS )); then
sed -i "s/shellescape(/ale#Escape(/" "$directory"/**/*.vim
sed -i 's/==#/is#/g' "$directory"/**/*.vim
sed -i 's/==?/is?/g' "$directory"/**/*.vim
+ sed -i 's/!=#/isnot#/g' "$directory"/**/*.vim
+ sed -i 's/!=?/isnot?/g' "$directory"/**/*.vim
done
fi
@@ -84,5 +86,7 @@ check_errors 'simplify(' 'Use ale#path#Simplify instead of simplify'
check_errors "expand(['\"]%" "Use expand('#' . a:buffer . '...') instead. You might get a filename for the wrong buffer."
check_errors '==#' "Use 'is#' instead of '==#'. 0 ==# 'foobar' is true"
check_errors '==?' "Use 'is?' instead of '==?'. 0 ==? 'foobar' is true"
+check_errors '!=#' "Use 'isnot#' instead of '!=#'. 0 !=# 'foobar' is false"
+check_errors '!=?' "Use 'isnot?' instead of '!=?'. 0 !=? 'foobar' is false"
exit $RETURN_CODE