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

Hadolint does not appear to be linting #5

Open
josegonzalez opened this issue Oct 29, 2020 · 3 comments
Open

Hadolint does not appear to be linting #5

josegonzalez opened this issue Oct 29, 2020 · 3 comments

Comments

@josegonzalez
Copy link

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
Copy link
Owner

niksite commented Oct 29, 2020

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

@josegonzalez
Copy link
Author

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
Copy link

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.

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

3 participants