`typos`, `yamllint` and `trufflehog` are run against the whole tree
rather than the staged files, and `ignore-hidden = false` means `typos`
descends into dot directories. A worktree created under
`.claude/worktrees/` is a checkout of this repository nested inside it,
and every exclude these three configure is a path from the root, so none
of them match the same file one level down. The nested checkout is
therefore scanned as though it had no excludes at all: 22 findings from
`typos`, 4275 from `yamllint`, and a private key under
`internal/configuration/test_resources/` tripping `trufflehog`, none of
which are about the change being committed.
`typos` runs with `-w`, so this is not only noise. It rewrote seven
third-party files in a nested checkout, `LDAP_ORGANISATION` to
`LDAP_ORGANIZATION` among them, which would have broken the `LDAP` suite
in a tree nobody had edited.
Ignoring `.claude/worktrees/` keeps those checkouts out of `git status`,
and covers `typos` on its own because it honours the ignore file.
`yamllint` and `trufflehog` do not, so both keep an explicit exclude,
and `typos` keeps one as well so that all three say the same thing
rather than one of them depending on a default. Only the worktrees are
ignored, since anything else a project keeps under `.claude/` is worth
both committing and linting.
The Go linters need nothing: a nested checkout carries its own `go.mod`,
so `./...` never reaches it.
Regenerate the CLI reference under
`docs/content/reference/cli/authelia-scripts/` to cover the new
`authelia-scripts suites external` command and its `list` and `test`
children. The parent `authelia-scripts suites` page also gains a
SEE-ALSO entry for the new sibling.
---------
Signed-off-by: Amir Zarrinkafsh <3339418+nightah@users.noreply.github.com>
This change dynamically sets the HTML `lang` tag based on the selected language of the Authelia portal.
This resolves issues relating to incorrect automatic translations if enabled within the browser, and should support screen readers as expected.
Fixes#8729.
Signed-off-by: Amir Zarrinkafsh <nightah@me.com>
* ci(lefthook): replace husky with lefthook
This change removes husky in favour of [LeftHook](https://lefthook.dev/) along with the following:
* Remove unused pre-commit configuration
* Included trufflehog as a standard linter locally
* ci(lefthook): adjust gitleaks to use detect
* ci(lefthook): adjust lefthook for yamllint
* ci(lefthook): skip pnpm prepare for dockerfile.coverage
* ci(lefthook): add yamllint to lefthook
* ci(lefthook): posix compliant check tools job
* ci(lefthook): yamllint success feedback like golangci-lint
* ci(lefthook): remove gitleaks
* ci(lefthook): ignore lefthook-local
* ci(lefthook): add trufflehog
* ci(lefthook): eslint success feedback like golangci-lint
Signed-off-by: Amir Zarrinkafsh <nightah@me.com>