1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-12-04 17:59:55 +00:00

Added bash script to run linters to tools

Ran prettier on .clang-format
This commit is contained in:
SuperBFG7 2021-06-16 17:18:25 +02:00
parent 61e385a35d
commit 883ea7ca06
2 changed files with 86 additions and 76 deletions

View File

@ -164,5 +164,5 @@ StatementMacros:
TabWidth: 8 TabWidth: 8
UseCRLF: false UseCRLF: false
UseTab: Never UseTab: Never
... ---

10
tools/lint.sh Executable file
View File

@ -0,0 +1,10 @@
#!/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