mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
ci: Auto format
This commit is contained in:
parent
0ce74497cd
commit
6b3a2381bd
1 changed files with 6 additions and 5 deletions
11
Justfile
11
Justfile
|
|
@ -2,15 +2,16 @@ set shell := ["fish", "-c"]
|
||||||
set windows-shell := ["pwsh", "-c"]
|
set windows-shell := ["pwsh", "-c"]
|
||||||
|
|
||||||
check_info:
|
check_info:
|
||||||
shellcheck -x -s sh ./bootstrap/**/*.sh
|
shellcheck -x -s sh **/*.sh platforms/mac/yabairc
|
||||||
shellcheck -x -s bash **/*.bash tools/bash/* scripts/*.{sh,zsh,bash} **/*.bashrc
|
shellcheck -x -s bash **/*.bash tools/bash/* scripts/*.{sh,zsh,bash} **/*.bashrc
|
||||||
check:
|
check:
|
||||||
shellcheck -x -s sh --severity=error ./bootstrap/**/*.sh
|
shellcheck -x -s sh --severity=error **/*.sh platforms/mac/yabairc
|
||||||
shellcheck -x -s bash --severity=error **/*.bash tools/bash/* **/*.bashrc
|
shellcheck -x -s bash --severity=error **/*.bash tools/bash/* **/*.bashrc
|
||||||
format:
|
format:
|
||||||
# shfmt -w -d -i 2 -ci -bn **/*.sh tools/bash/* scripts/*.{sh,bash,zsh} **/*.bashrc
|
shfmt -w -i 2 -ci -bn -p **/*.sh
|
||||||
shfmt -w -d -i 2 -ci -bn -p ./bootstrap/**/*.sh
|
shfmt -w -i 2 -ci -bn -ln bash **/*.bash platforms/mac/sketchybar/sketchybarrc
|
||||||
shfmt -w -d -i 2 -ci -bn -ln bash ./bootstrap/**/*.bash
|
# Ignore syntax errors in zsh files
|
||||||
|
shfmt -w -i 2 -ci -bn -ln bash **/*.zsh tools/zsh/**/* **/zshrc || true
|
||||||
pull:
|
pull:
|
||||||
git pull github master
|
git pull github master
|
||||||
git pull codeberg master
|
git pull codeberg master
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue