mirror of
https://github.com/koalaman/shellcheck.git
synced 2024-11-03 04:00:16 -08:00
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: shellcheck
|
|
summary: A shell script static analysis tool
|
|
description: |
|
|
ShellCheck is a GPLv3 tool that gives warnings and suggestions for bash/sh
|
|
shell scripts.
|
|
|
|
The goals of ShellCheck are
|
|
|
|
- To point out and clarify typical beginner's syntax issues that cause a
|
|
shell to give cryptic error messages.
|
|
|
|
- To point out and clarify typical intermediate level semantic problems that
|
|
cause a shell to behave strangely and counter-intuitively.
|
|
|
|
- To point out subtle caveats, corner cases and pitfalls that may cause an
|
|
advanced user's otherwise working script to fail under future
|
|
circumstances.
|
|
|
|
By default ShellCheck can only check non-hidden files under /home, to make
|
|
ShellCheck be able to check files under /media and /run/media you must
|
|
connect it to the `removable-media` interface manually:
|
|
|
|
# snap connect shellcheck:removable-media
|
|
|
|
version: git
|
|
base: core20
|
|
grade: stable
|
|
confinement: strict
|
|
|
|
apps:
|
|
shellcheck:
|
|
command: usr/bin/shellcheck
|
|
plugs: [home, removable-media]
|
|
environment:
|
|
LANG: C.UTF-8
|
|
|
|
parts:
|
|
shellcheck:
|
|
plugin: dump
|
|
source: .
|
|
build-packages:
|
|
- cabal-install
|
|
stage-packages:
|
|
- libatomic1
|
|
override-build: |
|
|
# Give ourselves enough memory to build
|
|
dd if=/dev/zero of=/tmp/swap bs=1M count=2000
|
|
mkswap /tmp/swap
|
|
swapon /tmp/swap
|
|
|
|
cabal sandbox init
|
|
cabal update
|
|
cabal install -j
|
|
|
|
install -d $SNAPCRAFT_PART_INSTALL/usr/bin
|
|
install .cabal-sandbox/bin/shellcheck $SNAPCRAFT_PART_INSTALL/usr/bin
|