]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
style: use astyle instead of indent
authorHarald Hoyer <harald@redhat.com>
Mon, 15 Mar 2021 11:12:31 +0000 (12:12 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 15 Mar 2021 14:37:08 +0000 (15:37 +0100)
.astylerc [new file with mode: 0644]
.github/workflows/lint.yml
Makefile

diff --git a/.astylerc b/.astylerc
new file mode 100644 (file)
index 0000000..69115f0
--- /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
+
index 973fdcb82857154572904f6c3b29ae2e7dec534c..135b7bdd68f96f16b895e56e8cf0eb80937f9389 100644 (file)
@@ -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
index a04184a5665334c71ff72868c2a3b0936c331787..c3fbd95b87834174c56049311c8594dd7b6a1dfe 100644 (file)
--- 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