Blarc / gitlab-template-lint-plugin

Intellij plugin for linting Gitlab CI/CD yaml templates.
https://plugins.jetbrains.com/plugin/19411-gitlab-template-lint
GNU General Public License v3.0
68 stars 2 forks source link

!reference highlight #115

Closed dotmitsu closed 1 year ago

dotmitsu commented 1 year ago

highlight shows an warning in schema validation

.build:
  stage: build and upload
  image: foo/bar
  script:
    - echo Hello

01. Unit-tests:
  stage: unit-tests
  image: !reference [.build, image]
  script: 
    - ./gradlew test

изображение изображение

Blarc commented 1 year ago

Hi, thanks for opening the issue. This functionality is not added by the plugin, but by the JSON schema validation mechanic that is built into the JetBrains IDE. It can be changed in the bottom right corner (Schema: gitlab-ci): image

You can read more about it here.

You could maybe try the schema from Gitlab official repo: https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/editor/schema/ci.json.

Similar issue.

dotmitsu commented 1 year ago

Thanks for answer