From 8ddd7f4837036160eeae1824efcf5e31a58ad459 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 30 Mar 2022 18:53:05 -0700 Subject: [PATCH] ci: add codespell to lint target Signed-off-by: Kir Kolyshkin --- .github/workflows/lint.yml | 2 +- Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 50b241e9f..c1215aeaf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,7 @@ jobs: image: registry.fedoraproject.org/fedora:latest steps: - name: Install tools - run: sudo dnf -y install git make python3-flake8 ShellCheck clang-tools-extra which findutils + run: sudo dnf -y install git make python3-flake8 ShellCheck clang-tools-extra which findutils codespell - uses: actions/checkout@v2 - name: Run make lint run: make lint diff --git a/Makefile b/Makefile index 9bb221796..ad70800eb 100644 --- a/Makefile +++ b/Makefile @@ -426,6 +426,7 @@ lint: shellcheck test/others/libcriu/*.sh shellcheck test/others/crit/*.sh test/others/criu-coredump/*.sh shellcheck test/others/config-file/*.sh + codespell # 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