Browse Source

style: use astyle instead of indent

master
Harald Hoyer 3 years ago committed by Harald Hoyer
parent
commit
5667978e7b
  1. 9
      .astylerc
  2. 2
      .github/workflows/lint.yml
  3. 2
      Makefile

9
.astylerc

@ -0,0 +1,9 @@ @@ -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

2
.github/workflows/lint.yml

@ -14,7 +14,7 @@ jobs: @@ -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

2
Makefile

@ -94,7 +94,7 @@ dracut-util: util/util @@ -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

Loading…
Cancel
Save