summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2021-06-19 12:01:33 +0100
committerw0rp <devw0rp@gmail.com>2021-06-19 12:01:33 +0100
commita566a5d01b210da7e37a08dabebedb20281abf87 (patch)
tree0eed43dd011afb03d3db9914dd8c4526d8c25d12
parentad27e921d71c5264382512dae7fce5292491e05f (diff)
downloadale-a566a5d01b210da7e37a08dabebedb20281abf87.zip
#3719 - Prevent redir being used again in future
-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 69ab3cc8..12dec4c1 100755
--- a/test/script/custom-linting-rules
+++ b/test/script/custom-linting-rules
@@ -126,6 +126,7 @@ 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"
check_errors '^ *:\?echo' "Stray echo line. Use \`execute echo\` if you want to echo something"
+check_errors '^ *:\?redir' 'User execute() instead of redir'
# Exclusions for grandfathered-in exceptions
exclusions="clojure/clj_kondo.vim elixir/elixir_ls.vim go/golangci_lint.vim swift/swiftformat.vim"
# shellcheck disable=SC2086