From d5ae3201a4128c9e7b1042e9ea40b7f13cf72a10 Mon Sep 17 00:00:00 2001 From: w0rp Date: Fri, 11 Aug 2017 00:31:42 +0100 Subject: =?UTF-8?q?Ban=20!=3D#=20and=20!=3D=3F=20from=20the=20codebase?= --- custom-checks | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'custom-checks') 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 -- cgit v1.2.3