ntopng/.clang-format
Riccardo Mori 2ecb162dfb
Add code formatter in the CI pipeline (#7372)
* Create formatter CI

This step in the CI pipeline is responsible for enforcing the coding style to the cpp code.

* Update formatter.yml

* Give writing permission to the code formatter action

* Add the workflow-dispatch event trigger

* Add first sketch of coding style

* Run build CI only after the formatter

* Disable include sorting on the formatter

* Fix formatter CI

* Fix code formatter in pull requests

* Fix code formatter CI

Commit the changes made by the formatter only when pushing to a remote branch. When dealing with pull requests the CI fails if the code is not properly formatted and does not commit the changes

* Remove formatter CI from PR

* Enable Build CI in PR
2023-04-07 16:19:57 +02:00

7 lines
82 B
YAML

---
BasedOnStyle: Google
---
Language: Cpp
IndentWidth: 2
SortIncludes: Never
---