fnando / vscode-linter

Extension for code linting, all in one package. New linters can be easily added through an extension framework.
https://marketplace.visualstudio.com/items?itemName=fnando.linter
MIT License
63 stars 16 forks source link

Not working on docker-compose.yaml output filled with `No linters found for "Log"` #20

Closed edouard-lopez closed 1 year ago

edouard-lopez commented 2 years ago

Metadata

Extension

VSCode

Settings.json

Details
  "linter.linters": {

    "brakeman": {
      "capabilities": [],
      "command": [
        [
          "$isBundler",
          "bundle",
          "exec"
        ],
        "brakeman",
        "--format",
        "json",
        "--no-progress",
        "--quiet",
        "--absolute-paths",
        [
          "$config",
          "--config-file",
          "$config"
        ],
        "$rootDir"
      ],
      "configFiles": [
        "brakeman.yml",
        "config/brakeman.yml",
        ".brakeman/config.yml"
      ],
      "enabled": true,
      "languages": [
        "ruby",
        "ruby-puma",
        "ruby-bundler",
        "ruby-test",
        "erb"
      ],
      "name": "brakeman",
      "url": "https://brakemanscanner.org/",
      "when": [
        "$isRails"
      ]
    },
    "credo": {
      "capabilities": [
        "ignore-line",
        "ignore-file"
      ],
      "command": [
        "mix",
        "credo",
        "--format",
        "json",
        "--read-from-stdin",
        "--all-priorities",
        "$file"
      ],
      "configFiles": [],
      "enabled": true,
      "languages": [
        "elixir"
      ],
      "name": "credo",
      "url": "https://hexdocs.pm/credo/"
    },
    "dart": {
      "capabilities": [],
      "command": [
        "dart",
        "analyze",
        "$file"
      ],
      "configFiles": [],
      "enabled": true,
      "languages": [
        "dart"
      ],
      "name": "dart",
      "url": "https://dart.dev/tools/linter-rules"
    },
    "eslint": {
      "capabilities": [
        "ignore-line",
        "ignore-file",
        "fix-one",
        "fix-all",
        "fix-inline"
      ],
      "command": [
        "eslint",
        "--format",
        "json",
        [
          "$config",
          "--config",
          "$config"
        ],
        [
          "$debug",
          "--loglevel",
          "debug",
          "--debug"
        ],
        [
          "$fixAll",
          "--fix-dry-run"
        ],
        [
          "$fixOne",
          "--fix-dry-run"
        ],
        "--stdin-filename",
        "$file",
        "--stdin"
      ],
      "configFiles": [
        ".eslintrc.js",
        ".eslintrc.cjs",
        ".eslintrc.yaml",
        ".eslintrc.yml",
        ".eslintrc.json",
        ".eslintrc"
      ],
      "enabled": true,
      "languages": [
        "javascript",
        "jsx",
        "typescript",
        "typescriptreact"
      ],
      "name": "eslint",
      "url": "https://eslint.org"
    },
    "hadolint": {
      "capabilities": [
        "ignore-line"
      ],
      "command": [
        "hadolint",
        "--format",
        "json",
        [
          "$config",
          "--config",
          "$config"
        ],
        "-"
      ],
      "configFiles": [
        ".hadolint.yml",
        ".hadolint.yaml"
      ],
      "enabled": true,
      "languages": [
        "dockerfile"
      ],
      "name": "hadolint",
      "url": "https://github.com/hadolint/hadolint"
    },
    "language-tool": {
      "capabilities": [],
      "command": [
        "languagetool",
        "--json",
        "--autoDetect"
      ],
      "configFiles": [],
      "enabled": true,
      "languages": [
        "markdown",
        "html",
        "plaintext"
      ],
      "name": "language-tool",
      "url": "https://github.com/languagetool-org/languagetool"
    },
    "luacheck": {
      "capabilities": [],
      "command": [
        "luacheck",
        "--formatter",
        "plain",
        "--codes",
        "--ranges",
        [
          "$config",
          "--config",
          "$config"
        ],
        "-"
      ],
      "configFiles": [
        ".luacheckrc"
      ],
      "enabled": true,
      "languages": [
        "lua"
      ],
      "name": "luacheck",
      "url": "https://luacheck.readthedocs.io/en/stable/"
    },
    "markdownlint": {
      "capabilities": [
        "fix-inline"
      ],
      "command": [
        "markdownlint",
        "--json",
        [
          "$fixAll",
          "--fix"
        ],
        [
          "$config",
          "--config",
          "$config"
        ],
        "--stdin"
      ],
      "configFiles": [
        ".markdownlint.json",
        ".markdownlint.yaml",
        ".markdownlint.yml",
        ".markdownlintrc"
      ],
      "enabled": true,
      "languages": [
        "markdown"
      ],
      "name": "markdownlint",
      "url": "https://github.com/DavidAnson/markdownlint"
    },
    "php-code-sniffer": {
      "capabilities": [],
      "command": [
        "phpcs",
        "--report",
        "json",
        [
          "$config",
          "--standard",
          "$config"
        ],
        [
          "!$config",
          "--standard",
          "PSR12"
        ],
        "--stdin-path",
        "$file",
        "-q",
        "-"
      ],
      "configFiles": [
        ".phpcs.xml",
        "phpcs.xml",
        ".phpcs.xml.dist",
        "phpcs.xml.dist"
      ],
      "enabled": true,
      "languages": [
        "php"
      ],
      "name": "php-code-sniffer",
      "url": "https://github.com/squizlabs/PHP_CodeSniffer"
    },
    "proselint": {
      "capabilities": [
        "fix-inline"
      ],
      "command": [
        "proselint",
        "--json",
        [
          "$config",
          "--config",
          "$config"
        ],
        "-"
      ],
      "configFiles": [
        ".proselintrc"
      ],
      "enabled": true,
      "languages": [
        "markdown",
        "html",
        "plaintext"
      ],
      "name": "proselint",
      "url": "https://github.com/amperser/proselint/"
    },
    "pylint": {
      "capabilities": [
        "ignore-file"
      ],
      "command": [
        "pylint",
        "--from-stdin",
        "--output-format",
        "json",
        [
          "$config",
          "--rcfile",
          "$config"
        ],
        "$file"
      ],
      "configFiles": [
        ".pylintrc"
      ],
      "enabled": true,
      "languages": [
        "python"
      ],
      "name": "pylint",
      "url": "https://www.pylint.org"
    },
    "reek": {
      "capabilities": [
        "ignore-line"
      ],
      "command": [
        "reek",
        "--format",
        "json",
        "--no-progress",
        [
          "$config",
          "--config",
          "$config"
        ],
        "--stdin-filename",
        "$file"
      ],
      "configFiles": [
        ".reek.yml"
      ],
      "enabled": true,
      "languages": [
        "ruby",
        "ruby-test",
        "ruby-puma",
        "ruby-bundler"
      ],
      "name": "reek",
      "url": "https://github.com/troessner/reek"
    },
    "rubocop": {
      "capabilities": [
        "ignore-eol",
        "fix-category",
        "fix-all"
      ],
      "command": [
        [
          "$isBundler",
          "bundle",
          "exec"
        ],
        "rubocop",
        [
          "$lint",
          "--format",
          "json",
          "--extra-details"
        ],
        [
          "$config",
          "--config",
          "$config"
        ],
        [
          "$debug",
          "--debug"
        ],
        [
          "$fixAll",
          "--auto-correct-all",
          "--stderr"
        ],
        [
          "$fixCategory",
          "--auto-correct-all",
          "--only",
          "$code",
          "--stderr"
        ],
        "--stdin",
        "$file"
      ],
      "configFiles": [
        ".rubocop.yml"
      ],
      "enabled": true,
      "languages": [
        "ruby",
        "ruby-test",
        "ruby-puma",
        "ruby-bundler"
      ],
      "name": "rubocop",
      "url": "https://rubocop.org"
    },
    "ruby": {
      "capabilities": [],
      "command": [
        "ruby",
        "-c",
        "-w"
      ],
      "configFiles": [],
      "enabled": true,
      "languages": [
        "ruby",
        "ruby-test",
        "ruby-puma",
        "ruby-bundler"
      ],
      "name": "ruby",
      "url": "https://www.ruby-lang.org"
    },
    "shellcheck": {
      "args": {
        "$bash": {
          "extensions": [
            ".bash"
          ]
        },
        "$shellscript": {
          "languages": [
            "shellscript"
          ]
        }
      },
      "capabilities": [],
      "command": [
        "shellcheck",
        "--format",
        "json",
        "--enable",
        "all",
        "-"
      ],
      "configFiles": [],
      "enabled": true,
      "languages": [
        "shellscript",
        "bash"
      ],
      "name": "shellcheck",
      "url": "https://github.com/koalaman/shellcheck"
    },
    "sqlfluff": {
      "args": {
        "$mysql": {
          "languages": [
            "mysql"
          ]
        },
        "$postgres": {
          "languages": [
            "postgres"
          ]
        }
      },
      "capabilities": [
        "fix-all",
        "ignore-eol"
      ],
      "command": [
        "sqlfluff",
        [
          "$lint",
          "lint",
          "--format",
          "json"
        ],
        [
          "$fixAll",
          "fix"
        ],
        [
          "$postgres",
          "--dialect",
          "postgres"
        ],
        [
          "$mysql",
          "--dialect",
          "mysql"
        ],
        "-"
      ],
      "configFiles": [
        ".sqlfluff"
      ],
      "enabled": true,
      "languages": [
        "mysql",
        "postgres"
      ],
      "name": "sqlfluff",
      "url": "https://docs.sqlfluff.com/en/stable/index.html"
    },
    "stylelint": {
      "capabilities": [
        "fix-all"
      ],
      "command": [
        "stylelint",
        "--formatter",
        "json",
        [
          "$fixAll",
          "--fix"
        ],
        [
          "$config",
          "--config",
          "$config"
        ],
        "--stdin-filename",
        "$file",
        "--stdin"
      ],
      "configFiles": [
        "stylelint.config.js",
        ".stylelintrc.json",
        ".stylelintrc.yml",
        ".stylelintrc.yaml",
        ".stylelintrc.js"
      ],
      "enabled": true,
      "languages": [
        "css",
        "css-in-js",
        "html",
        "less",
        "markdown",
        "sass",
        "scss",
        "sugarss"
      ],
      "name": "stylelint",
      "url": "https://stylelint.io"
    },
    "swiftlint": {
      "capabilities": [
        "ignore-line",
        "ignore-file"
      ],
      "command": [
        "swiftlint",
        "--use-stdin",
        "--reporter",
        "json",
        [
          "$fixAll",
          "--fix",
          "--format"
        ],
        [
          "$config",
          "--config",
          "$config"
        ]
      ],
      "configFiles": [
        ".swiftlint.yml",
        ".swiftlint.yaml"
      ],
      "enabled": true,
      "languages": [
        "swift"
      ],
      "name": "swiftlint",
      "url": "https://realm.github.io/SwiftLint/"
    },
    "textlint": {
      "capabilities": [
        "fix-inline"
      ],
      "command": [
        "textlint",
        "--format",
        "json",
        [
          "$debug",
          "--debug"
        ],
        [
          "$config",
          "--config",
          "$config"
        ],
        "--stdin",
        "--stdin-filename",
        "$file"
      ],
      "configFiles": [
        ".textlintrc",
        ".textlintrc.js",
        ".textlintrc.json",
        ".textlintrc.yaml",
        ".textlintrc.yml"
      ],
      "enabled": true,
      "languages": [
        "markdown",
        "plaintext",
        "html"
      ],
      "name": "textlint",
      "url": "https://textlint.github.io"
    },
    "vale": {
      "capabilities": [],
      "command": [
        "vale",
        "--output",
        "JSON",
        [
          "$config",
          "--config",
          "$config"
        ],
        "--ext",
        "$extension"
      ],
      "configFiles": [
        ".vale.ini"
      ],
      "enabled": true,
      "languages": [
        "markdown",
        "plaintext",
        "html"
      ],
      "name": "vale",
      "url": "https://github.com/errata-ai/vale"
    },
    "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"
    }
  }

Output linter

[02/11/2022, 10:21:37] No linters found for "Log"

[02/11/2022, 10:21:37] Reading from cache? false
fnando commented 1 year ago

Afaik, hadolint doesn't lint docker compose files. What linter were you expecting to be applied to your docker-compose.yml file?