#3719 - Prevent redir being used again in future

This commit is contained in:
w0rp 2021-06-19 12:01:33 +01:00
parent ad27e921d7
commit a566a5d01b
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
1 changed files with 1 additions and 0 deletions

View File

@ -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