1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-12-29 12:20:26 +00:00
ympd/tools/lint.sh
SuperBFG7 883ea7ca06 Added bash script to run linters to tools
Ran prettier on .clang-format
2021-06-16 17:18:25 +02:00

11 lines
224 B
Bash
Executable File

#!/bin/bash
repo="$(git rev-parse --show-toplevel)"
pushd "$repo"
prettier --write .
for i in http_server.c http_server.h json_encode.h mpd_client.c mpd_client.h ympd.c; do
clang-format -i -style=file "src/$i"
done
popd