niksite / SublimeLinter-contrib-hadolint

MIT License
11 stars 4 forks source link

Hadolint does not appear to be linting #5

Open josegonzalez opened 3 years ago

josegonzalez commented 3 years ago

I installed hadolint to my OSX install via homebrew:

brew install hadolint

And I checked that its in my path:

$ which hadolint
/usr/local/bin/hadolint

I also updated my sublimelinter settings, both with paths for osx and then later with one specific for hadolint:

{
    "paths": {
        "linux": [],
        "osx": [
            "/Users/josediazgonzalez/.composer/vendor/bin",
            "/Users/josediazgonzalez/go/bin",
            "/Users/josediazgonzalez/bin",
            "/usr/local/bin",
            "/usr/bin",
            "/bin",
            "/usr/sbin",
            "/sbin",
            "/Library/Apple/usr/bin"
        ],
        "windows": []
    },
    "linters": {
        "hadolint": {
          "env": {"PATH":"/usr/local/bin/"}
        }
    }
}

The plugin doesn't appear to lint or do anything, nor do I see errors. I can run hadolint on the cli and I get warnings.

Any ideas as to what I can try to debug this?

niksite commented 3 years ago

Please, check with updated code from this repo. I am no longer use Sublime, but Pull requests are always welcome.

josegonzalez commented 3 years ago

I think it needs a new release for PackageControl to pick it up. Happy to test and debug stuff if you can show me the way :)

jasmeralia commented 2 years ago

I had a similar problem where it was showing "no linters available for this view". After I installed the package "Dockerfile Syntax Highlighting" it started working just fine.