From fd7e97fcfd285b09f40df3622dd16b260e1e1de0 Mon Sep 17 00:00:00 2001 From: Pavel Tikhomirov Date: Thu, 23 Feb 2023 17:12:32 +0800 Subject: [PATCH] lint: exclude tags file from codespell If we build tags for our repo: [criu]$ make tags GEN tags And then run codespell, we get an error: [criu]$ codespell ./tags:3755: struc ==> struct Let's exclude tags file from codespell search, this would add usability to `make lint`. Signed-off-by: Pavel Tikhomirov --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eaa8a91e0..aabe28a92 100644 --- a/Makefile +++ b/Makefile @@ -427,7 +427,7 @@ lint: shellcheck -x test/others/libcriu/*.sh shellcheck -x test/others/crit/*.sh test/others/criu-coredump/*.sh shellcheck -x test/others/config-file/*.sh - codespell + codespell -S tags # Do not append \n to pr_perror or fail ! git --no-pager grep -E '^\s*\<(pr_perror|fail)\>.*\\n"' # Do not use %m with pr_perror or fail