Skip to content

Commit a566a5d

Browse files
committed
dense-analysis#3719 - Prevent redir being used again in future
1 parent ad27e92 commit a566a5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/script/custom-linting-rules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ check_errors '==?' "Use 'is?' instead of '==?'. 0 ==? 'foobar' is true"
126126
check_errors '!=#' "Use 'isnot#' instead of '!=#'. 0 !=# 'foobar' is false"
127127
check_errors '!=?' "Use 'isnot?' instead of '!=?'. 0 !=? 'foobar' is false"
128128
check_errors '^ *:\?echo' "Stray echo line. Use \`execute echo\` if you want to echo something"
129+
check_errors '^ *:\?redir' 'User execute() instead of redir'
129130
# Exclusions for grandfathered-in exceptions
130131
exclusions="clojure/clj_kondo.vim elixir/elixir_ls.vim go/golangci_lint.vim swift/swiftformat.vim"
131132
# shellcheck disable=SC2086

0 commit comments

Comments
 (0)