michaellzc / vscode-hadolint

VSCode extension to integrate hadolint, a Dockerfile linter, into VSCode
https://marketplace.visualstudio.com/items?itemName=exiasr.hadolint
MIT License
77 stars 5 forks source link

Allow Specifcation of Hadolint Command #85

Closed da2ce7 closed 1 year ago

da2ce7 commented 1 year ago

On Flatpak: i.e: https://github.com/flathub/com.visualstudio.code and https://github.com/flathub/com.vscodium.codium

You can launch system-installed commands with command: ´flatpak-spawn --host´

With a configuration option, I could redefine the command from hadolint to flatpak-spawn --host hadolint.

This would be very helpful.

michaellzc commented 1 year ago

On Flatpak: i.e: https://github.com/flathub/com.visualstudio.code and https://github.com/flathub/com.vscodium.codium

You can launch system-installed commands with command: ´flatpak-spawn --host´

With a configuration option, I could redefine the command from hadolint to flatpak-spawn --host hadolint.

This would be very helpful.

this is supported

you can wrap flatpak-spawn --host hadolint into a custom shell script and passthrough arguments, then override the path to hadolint binary in config

https://github.com/michaellzc/vscode-hadolint/blob/41ec2ec0a461a409fd26df5b0c4bafd529afc376/package.json#L37-L41