mirror of
https://github.com/89luca89/distrobox.git
synced 2026-08-17 16:34:42 -05:00
CI: update lint rules to new style
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@ jobs:
|
||||
for file in $(find . -type f -not -path "*.git*"); do
|
||||
if file "$file" | grep -qi shell; then
|
||||
echo "### Checking file $file..."
|
||||
podman run --rm -v "$PWD:/mnt" docker.io/peterdavehello/shfmt:latest shfmt -d -s -ci -sr -kp /mnt/$file
|
||||
podman run --rm -v "$PWD:/mnt" docker.io/peterdavehello/shfmt:latest shfmt -d -s -ci -sr -kp -fn -i=0 -p /mnt/$file
|
||||
result=$(( result + $? ))
|
||||
fi
|
||||
done
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ done
|
||||
- `shellcheck -s sh -a -o all -Sstyle -Calways -x -e SC2310,SC2311,SC2312`
|
||||
- use `shfmt` to style the code using:
|
||||
- install from [HERE](https://github.com/mvdan/sh) using `go install mvdan.cc/sh/v3/cmd/shfmt@latest`
|
||||
- `shfmt -d -s -ci -sr -kp`
|
||||
- `shfmt shfmt -d -s -ci -sr -kp`
|
||||
- use `bashate` to check the code:
|
||||
- install using `pip3 install bashate`
|
||||
- `bashate -i E002,E003,E010,E011 --max-line-length 120`
|
||||
|
||||
Reference in New Issue
Block a user