You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
If tabWidth for YAML is configured to something other than 2-spaces, this should work. If not, you get this error:
YAMLException: bad indentation of a mapping entry (13:10)
10 | # @Description Code linting enforcement.
11 | lint:
12 | gclDescription: Code linting enforcement.
13 | stage: test
---------------^
It looks like the injected gclDescription doesn't follow the editor's tab width configuration, creating a spacing error.
Additionally, @Description fails if it is not the only comment above the target, unlike most comment decorators. For example, I would expect this to work, but it fails:
## @Description some text here## Additional contextlint:
Host information
docker devcontainer (Node)
gitlab-ci-local 4.57.0
Containerd binary
Docker.
The text was updated successfully, but these errors were encountered:
Minimal .gitlab-ci.yml illustrating the issue
Expected behavior
If
tabWidth
for YAML is configured to something other than 2-spaces, this should work. If not, you get this error:It looks like the injected
gclDescription
doesn't follow the editor's tab width configuration, creating a spacing error.Additionally,
@Description
fails if it is not the only comment above the target, unlike most comment decorators. For example, I would expect this to work, but it fails:Host information
docker devcontainer (Node)
gitlab-ci-local 4.57.0
Containerd binary
Docker.
The text was updated successfully, but these errors were encountered: