pi-factory
pi-factory copied to clipboard
shfmt -p (reformat in posix mode)
shfmt brings automated formatting to shell, and is written in golang
@meeDamian What is the best way to add this to Travis, to ensure it gets run before every commit?
But travis happens after commits. I'm not sure what's the question. Locally you can add it to your git hooks - see .git/hooks/pre-commit.sample
in any repo.
If that software has a check mode, you can also add it to the script
run on Travis so that build always fails, if check fails.
It removed all trailing slashes everywhere. I would guess it breaks the code, no?
It removed all trailing slashes everywhere. I would guess it breaks the code, no?
@meeDamian I’ll check before merging. Maybe the && counts as a line continuation?
This might be useful but can we salvage some of this or close it?