-
Notifications
You must be signed in to change notification settings - Fork 19
Description
The contributing document suggests that contributors ought to format the code before submission, however there is no enforcement in CI. I would like to add it to the CI, however it's not stated which version of clang-format should be used. Different versions of clang-format may format some code differently, so it's important to specify the version.
On the same note, I'd like to also know your opinions on other forms of static analysis, such as spell checking. I have been using codespell personally. If you find it satisfactory, I'd also like to add that in the same PR.
To make efficient use of CI resources, I would like to structure CI as a single file with such job and matrix configuration:
flowchart
A["clang-format
codespell"]
B["CMake (Windows)
CMake (Ubuntu)"]
C["CodeQL (Windows)
CodeQL (Ubuntu)"]
A --> B
A --> C
You can see this example, where nothing else is done until the lint job is done.
Making this chart also makes me question whether the separate CMake jobs are necessary with CodeQL jobs being a thing.