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:
parent
61e385a35d
commit
883ea7ca06
@ -164,5 +164,5 @@ StatementMacros:
|
|||||||
TabWidth: 8
|
TabWidth: 8
|
||||||
UseCRLF: false
|
UseCRLF: false
|
||||||
UseTab: Never
|
UseTab: Never
|
||||||
...
|
---
|
||||||
|
|
||||||
|
10
tools/lint.sh
Executable file
10
tools/lint.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user