From 46a4336d8f2fcff8cdd441bec957e6c4771606f5 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Thu, 3 Aug 2023 03:58:14 +0900 Subject: [PATCH] Lint dot files in typos --- .github/workflows/lint.yml | 9 +++++++++ cmd/lint/main.go | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1b82a36e..d43b2f95 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,3 +23,12 @@ jobs: - uses: actions/checkout@v3 # Keep same version as used in *.nix - uses: crate-ci/typos@v1.16.1 + with: + # https://github.com/crate-ci/typos/issues/779#issuecomment-1635761199 + files: | + . + .github + .vscode + home/.config + home/.local + home/.stack diff --git a/cmd/lint/main.go b/cmd/lint/main.go index e425a843..c749c23b 100644 --- a/cmd/lint/main.go +++ b/cmd/lint/main.go @@ -36,7 +36,7 @@ func main() { {"shfmt", append([]string{"--language-dialect", "bash", "--diff"}, bashPaths...)}, {"shellcheck", bashPaths}, {"nixpkgs-fmt", append([]string{"--check"}, nixPaths...)}, - {"typos", []string{".", ".github", "home/.config", ".vscode"}}, + {"typos", []string{".", ".github", ".vscode", "home/.config", "home/.local", "home/.stack"}}, {"gitleaks", []string{"detect"}}, {"go", []string{"vet", "./..."}}, }