Skip to content

Commit

Permalink
lint json configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Jan 11, 2024
1 parent 5cb6199 commit 6e45512
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ jobs:
steps:
- run: "echo \"/usr/local/go/bin\" >> $GITHUB_PATH"
- run: "echo \"${GOPATH}/bin\" >> $GITHUB_PATH"
- run: "echo \"${HOME}/bin\" >> $GITHUB_PATH"
- uses: "actions/checkout@v4"
- run: "sudo apt-get update"
- run: "sudo apt-get install -y bash shellcheck wget zsh"
- run: "wget https://go.dev/dl/go1.21.5.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz"
- run: "mkdir -p $HOME/bin"
- run: "wget -O $HOME/bin/kirill https://raw.githubusercontent.com/mcandre/kirill/v0.0.1/bin/kirill"
- run: "chmod +x $HOME/bin/kirill"
- run: "./install"
- run: "./build lint"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ It is provided with the base macOS operating system. Equivalent aliases for `ope
* POSIX compatible [sh](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html)
* [ShellCheck](https://www.shellcheck.net/) 0.8.0+
* [Go](https://golang.org/) 1.21.5+
* [kirill](https://github.com/mcandre/kirill) 0.0.1
* [Python](https://www.python.org/) 3.12.1+
* Provision additional dev tools with `./install`

Expand Down
6 changes: 6 additions & 0 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ audit() {
lint() {
bashate
funk
kirill
shellcheck
shfmt
slick
Expand All @@ -26,6 +27,11 @@ funk() {
command funk .
}

kirill() {
command kirill -print0 . |
xargs -0 -n 1 -t jq -r input_filename
}

safety() {
command safety check
}
Expand Down

0 comments on commit 6e45512

Please sign in to comment.