openMSL / sl-1-0-sensor-model-repository-template

Template repository: Clone and build your ASAM OSI sensor model.
Mozilla Public License 2.0
8 stars 2 forks source link

Consider using cmake linter #15

Closed ClemensLinnhoff closed 1 year ago

ClemensLinnhoff commented 1 year ago

Is your feature request related to a problem? Please describe. Linters for C++ are already used to ensure code quality. Similar linters also exist for CMakeLists

Describe the solution you'd like One could use e.g. this tool.

Describe alternatives you've considered none

ClemensLinnhoff commented 1 year ago

While there are some cmake linters out there, there does not seem to be a generally accepted style guide for cmake. Some project have proprietary style guides, that are not generally applicable, or just very minimal ones. Furthermore, there does not seem to be a unified description language (e.g. as clang-format files for C++), so available lint tools uses proprietary style definition files.

Therefore, i.m.o. it would not be viable to include a cmake linter into the pipeline.