Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Any chances to get Shellcheck onboard ? #277

Open
netflash opened this issue Apr 20, 2017 · 5 comments
Open

Any chances to get Shellcheck onboard ? #277

netflash opened this issue Apr 20, 2017 · 5 comments

Comments

@netflash
Copy link
Contributor

Hi there,

any chances you can get https://github.com/koalaman/shellcheck onboard ?
Would love to have it to check bash scripts.

@rarkins
Copy link
Collaborator

rarkins commented Apr 20, 2017

Yes, no problem - I'll add shortly or feel free to submit a PR in the meantime

@rarkins rarkins self-assigned this Apr 20, 2017
@rarkins
Copy link
Collaborator

rarkins commented Apr 21, 2017

After some quick reading, it seems that shellcheck isn't as simple as some other linters.

It's not supported directly by alpine linux:
https://bugs.alpinelinux.org/issues/6417
http://bugs.alpinelinux.org/issues/7105

Here's an example docker image that incorporates alpine + shellcheck: https://github.com/NLKNguyen/alpine-shellcheck

The only problem is that it involves manual steps, while this repo is auto-built by Docker Hub. It could still be possible but needs more thought.

@rarkins
Copy link
Collaborator

rarkins commented Apr 21, 2017

One (ugly) possibility would be to simply commit the shellcheck binary to this repo and copy it into the Docker image.

@netflash
Copy link
Contributor Author

Nice findings!
I find Docker Hub and Quay native build processes not good for separate build container approach :-(

Thought of using releases https://github.com/koalaman/shellcheck/releases , but there's source code only...

@damiendurant
Copy link

Hi,

I compile the shellcheck on this fork : https://github.com/damiendurant/lint-condo.git

It's based on work done on mhart/alpine-node
Therefore, currently the image is 600M ,still looking to downsize it before to merge request.

@rarkins rarkins removed their assignment Nov 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants