Closed tymonx closed 1 year ago
Hidden files started with dot . are not included for linting. Example: .hidden.
.
.hidden
podman
podman run -it --rm registry.gitlab.com/pipeline-components/alex:0.21.9 --version
11.0.0
podman run -it --rm registry.gitlab.com/pipeline-components/alex:0.21.9 env
NODE_VERSION=19.8.1 YARN_VERSION=1.22.19
echo "pop" > .hidden
alex
podman run -it --rm --volume "$(pwd):/alex:ro,z" --workdir "/alex" registry.gitlab.com/pipeline-components/alex:0.21.9 --why .
It should return status code 1 and print:
1
.hidden 1:1-1:4 warning `pop` may be insensitive, use `parent` instead dad-mom retext-equality ⚠ 1 warning
It returns status code 0 (success) without printing anything to standard output or error output.
0
Explicitly provide hidden files to alex (for example using shell glob pattern substitution .*):
.*
podman run -it --rm --volume "$(pwd):/alex:ro,z" --workdir "/alex" registry.gitlab.com/pipeline-components/alex:0.21.9 --why .*
But this will not work when .alexignore is defined:
.alexignore
echo ".hidden" > .alexignore
It returns status code 1 and prints:
.alexignore: no issues found .hidden 1:1 error Cannot process specified file: it’s ignored ✖ 1 error
Hi!
It is intentional that dotfiles are not included by default.
If you want to include certain files, pass them: alex .hidden
alex .hidden
Subject of the issue
Hidden files started with dot
.
are not included for linting. Example:.hidden
.Your environment
podman
podman run -it --rm registry.gitlab.com/pipeline-components/alex:0.21.9 --version
podman run -it --rm registry.gitlab.com/pipeline-components/alex:0.21.9 env
Steps to reproduce
.
:alex
:Expected behaviour
It should return status code
1
and print:Actual behaviour
It returns status code
0
(success) without printing anything to standard output or error output.Workaround
Explicitly provide hidden files to alex (for example using shell glob pattern substitution
.*
):But this will not work when
.alexignore
is defined:It returns status code
1
and prints:Related issues