feat(script): add pre-commit configuration for code formatting (#3092)

* Add initial pre-commit configuration for code formatting

* chore: Move --recursive switch from cfg file to script

* pre-commit: Update format-source hook to use code-format.cfg

Also remove the code-format-per-file.cfg file as it's now unused

* docs: Add section about pre-commit
This commit is contained in:
Carlos Diaz
2022-02-24 11:44:39 -06:00
committed by GitHub
parent 4ed0f011f6
commit a83cae012d
4 changed files with 69 additions and 5 deletions

View File

@@ -19,7 +19,6 @@
--max-continuation-indent=120
--mode=c
--lineend=linux
--recursive
--suffix=none
--preserve-date
--formatted