summaryrefslogtreecommitdiff
path: root/custom-checks
diff options
context:
space:
mode:
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