Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No linters found for "dockercompose" #28

Open
gbomacfly opened this issue May 7, 2023 · 1 comment
Open

No linters found for "dockercompose" #28

gbomacfly opened this issue May 7, 2023 · 1 comment

Comments

@gbomacfly
Copy link

Hi,

I'm using vscode-linter to lint my yaml and docker-compose.yml (which is yaml) files.
Since I have also the "composer" extension for docker, the Language id changed from yaml to dockercompose. and yamllint don't recognize this.

It works if I run yamllint manually:
yamllint -c ~/.yamllint.yml docker-compose.yml

Output in vscode:

Language id: dockercompose
No linters found for "dockercompose"

settings.json:

"linter.linters": {
    "yamllint": {
      "capabilities": [
        "ignore-line"
      ],
      "command": [
        "yamllint",
        "--format",
        "parsable",
        [
          "$config",
          "--config-file",
          "$config"
        ],
        "-"
      ],
      "configFiles": [
        ".yamllint.yml",
        ".yamllint.yaml",
        ".yamllint"
      ],
      "enabled": true,
      "languages": [
        "yaml",
      ],
      "name": "yamllint",
      "url": "https://github.com/adrienverge/yamllint"
    }
  },

I have added dockercompose to languages, but no result:

"languages": [
        "yaml",
        "dockercompose"
      ],

I also added a complete new section, with language only set to dockercompose, no luck...

"linter.linters": {
    "yamllint": {
      "capabilities": [
        "ignore-line"
      ],
      "command": [
        "yamllint",
        "--format",
        "parsable",
        [
          "$config",
          "--config-file",
          "$config"
        ],
        "-"
      ],
      "configFiles": [
        ".yamllint.yml",
        ".yamllint.yaml",
        ".yamllint"
      ],
      "enabled": true,
      "languages": [
        "yaml",
      ],
      "name": "yamllint",
      "url": "https://github.com/adrienverge/yamllint"
    },
    "yamllint_dockercompose": {
      "capabilities": [
        "ignore-line"
      ],
      "command": [
        "yamllint",
        "--format",
        "parsable",
        [
          "$config",
          "--config-file",
          "$config"
        ],
        "-"
      ],
      "configFiles": [
        ".yamllint.yml",
        ".yamllint.yaml",
        ".yamllint"
      ],
      "enabled": true,
      "languages": [
        "dockercompose"
      ],
      "name": "yamllint_dockercompose",
      "url": "https://github.com/adrienverge/yamllint"
    }
  },

What can I do here? Do i something wrong?

Thanks for help :)

@gbomacfly
Copy link
Author

The first options just works fine after a vscode restart...

Thanks anyway :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant