Skip to content

shellcheck: general linting and github action #4

shellcheck: general linting and github action

shellcheck: general linting and github action #4

Workflow file for this run

name: ShellCheck Linting
on:
pull_request:
branches:
- master
jobs:
lint:
name: Run ShellCheck
runs-on: macos-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/[email protected]
env:
# Excluding SC3043: In POSIX sh, 'local' is undefined. Ignoring because local is a built-in command in FreeBSD
# Excluding SC2154: Variable is referenced but not assigned. Because we include files in the scripts
SHELLCHECK_OPTS: -e SC3043 -e SC2154
with:
severity: warning
scandir: "./usr/local/share/bastille"
additional_files: "./usr/local/bin/bastille"
ignore_paths: "./usr/local/share/bastille/templates ./usr/local/share/bastille/colors.pre.sh"