mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-26 16:25:20 +03:00
style: use astyle instead of indent
This commit is contained in:
parent
0850cf532d
commit
5667978e7b
9
.astylerc
Normal file
9
.astylerc
Normal file
@ -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
vendored
2
.github/workflows/lint.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: install tools
|
- name: install tools
|
||||||
run: sudo apt-get install indent
|
run: sudo apt-get install astyle
|
||||||
|
|
||||||
- name: indent
|
- name: indent
|
||||||
run: make indent-c
|
run: make indent-c
|
||||||
|
2
Makefile
2
Makefile
@ -94,7 +94,7 @@ dracut-util: util/util
|
|||||||
|
|
||||||
.PHONY: indent-c
|
.PHONY: indent-c
|
||||||
indent-c:
|
indent-c:
|
||||||
indent -i8 -nut -br -linux -l120 $(wildcard *.[ch] */*.[ch])
|
astyle -n --quiet --options=.astylerc $(wildcard *.[ch] */*.[ch])
|
||||||
|
|
||||||
.PHONY: indent
|
.PHONY: indent
|
||||||
indent: indent-c
|
indent: indent-c
|
||||||
|
Loading…
Reference in New Issue
Block a user