From: Harald Hoyer Date: Mon, 15 Mar 2021 11:12:31 +0000 (+0100) Subject: style: use astyle instead of indent X-Git-Tag: 054~295 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5667978e7bfc0e5d0e7f987ef14f99d75b967d14;p=thirdparty%2Fdracut.git style: use astyle instead of indent --- diff --git a/.astylerc b/.astylerc new file mode 100644 index 000000000..69115f0b3 --- /dev/null +++ b/.astylerc @@ -0,0 +1,9 @@ +lineend=linux +style=linux +indent=spaces=8 +convert-tabs +min-conditional-indent=0 +max-instatement-indent=120 +align-pointer=name +max-code-length=120 + diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 973fdcb82..135b7bdd6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - name: install tools - run: sudo apt-get install indent + run: sudo apt-get install astyle - name: indent run: make indent-c diff --git a/Makefile b/Makefile index a04184a56..c3fbd95b8 100644 --- a/Makefile +++ b/Makefile @@ -94,7 +94,7 @@ dracut-util: util/util .PHONY: indent-c indent-c: - indent -i8 -nut -br -linux -l120 $(wildcard *.[ch] */*.[ch]) + astyle -n --quiet --options=.astylerc $(wildcard *.[ch] */*.[ch]) .PHONY: indent indent: indent-c