Skip to content

Tweaking linting

Tweaking linting #10

Workflow file for this run

name: Linting
on:
pull_request:
push:
branches:
- master
permissions:
contents: read
env:
WORDLIST: .github/spellcheck/allow.txt
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Spell check (aspell)
run: |
sudo apt-get update
sudo apt-get install -y aspell aspell-en
mkdir -p "$(dirname "$WORDLIST")"
touch "$WORDLIST"
aspell --mode=tex --lang=en_US --personal="$WORDLIST" --list < resume.tex \
| sort -u | tee misspellings.txt
if [ -s misspellings.txt ]; then
echo "Misspellings found:"
cat misspellings.txt
exit 1
fi
- name: LaTeX lint (chktex)
run: |
sudo apt-get update
sudo apt-get install -y chktex
chktex -q -n1 -n3 -n8 resume.tex