Skip to content

Commit c31ce03

Browse files
tatianabgopherbot
authored andcommitted
checks.bash: add exception for misspell
A mention of "github.com/julz/importas" caused the misspell tool to fail, thinking that "importas" was a misspelling of "imports", so add an exception. Change-Id: I970a2556c3ebe0e244aee27650c166cfb925116a Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/523636 Run-TryBot: Tatiana Bradley <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Tatiana Bradley <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 207b5b9 commit c31ce03

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

checks.bash

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ check_staticcheck() {
8282
# check_misspell runs misspell on source files.
8383
check_misspell() {
8484
ensure_go_binary github.com/client9/misspell/cmd/misspell
85-
# reports/GO-2020-0041.yaml is about module "github.com/unknwon/cae",
86-
# and the second element is a common misspelling of unknown.
87-
runcmd misspell -i "unknwon" -error .
85+
# exceptions:
86+
# "github.com/unknwon/cae" - OK
87+
# "github.com/julz/importas" - OK
88+
runcmd misspell -i "unknwon,importas" -error .
8889
}
8990

9091
check_data_osv() {

0 commit comments

Comments
 (0)