File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : lint
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [main]
7+ workflow_dispatch :
8+
9+ jobs :
10+ tidy :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+
15+ - name : Install system dependencies
16+ env :
17+ DEBIAN_FRONTEND : noninteractive
18+ run : |
19+ sudo apt-get update
20+ sudo apt-get install -y tidy
21+
22+ # https://github.com/actions/checkout
23+ - uses : actions/checkout@v2
24+
25+ - name : Tidy Legal Code
26+ run : |
27+ ./tools/tidy_legalcode.sh
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -o nounset
3+ set -o pipefail
4+
5+ tidy -errors -quiet -utf8 --show-filename yes --show-warnings no \
6+ docroot/legalcode/* .html \
7+ 2>&1 | sed -e' /^Tidy: /d'
8+ case ${?} in
9+ 2) exit 2;; # errors
10+ 1) exit 0;; # warning (ignored)
11+ 0) exit 0;; # success
12+ esac
You can’t perform that action at this time.
0 commit comments