https://github.com/peterdavehello/docker-shellcheck
🐳 Dockerized ShellCheck: A static analysis tool for shell scripts
https://github.com/peterdavehello/docker-shellcheck
alpine bash docker docker-image hacktoberfest linter script shell shellcheck shellscript syntax
Last synced: 4 months ago
JSON representation
🐳 Dockerized ShellCheck: A static analysis tool for shell scripts
- Host: GitHub
- URL: https://github.com/peterdavehello/docker-shellcheck
- Owner: PeterDaveHello
- Created: 2017-05-29T07:36:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-02-17T08:03:22.000Z (5 months ago)
- Last Synced: 2025-03-17T00:04:03.287Z (4 months ago)
- Topics: alpine, bash, docker, docker-image, hacktoberfest, linter, script, shell, shellcheck, shellscript, syntax
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/peterdavehello/shellcheck/
- Size: 25.4 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerized ShellCheck
[](https://github.com/MyDockerfiles/ShellCheck)
[](https://hub.docker.com/r/peterdavehello/shellcheck/)[](https://hub.docker.com/r/peterdavehello/shellcheck/)
## About ShellCheck
A static analysis tool for shell scripts, homepage and repository below:
-
-Please note that this Docker image repository is not part of the ShellCheck project.
## Available image tags
See [tags](https://hub.docker.com/r/peterdavehello/shellcheck/tags) page on Docker Hub
## Usage
### Command line
```sh
SHELLCHECK_VERSION=0.7.1
docker run --rm -it -v `pwd`:/scripts peterdavehello/shellcheck:$SHELLCHECK_VERSION shellcheck /scripts/script.sh
```### In GitLab CI
```yaml
shellcheck:
stage: test
image: peterdavehello/shellcheck:0.7.1
only:
changes:
- "**/*.bash"
before_script:
- shellcheck --version
script:
- find . -name "*.sh" | xargs -n 1 shellcheck --color=always
tags:
- docker
```