MarkSchofield / WindowsToolchain

A repository containing a CMake toolchain for using MSVC
MIT License
106 stars 19 forks source link

Adding an initial '.cmake-format.yaml' #51

Closed MarkSchofield closed 2 years ago

MarkSchofield commented 2 years ago

This PR adds a '.cmake-format.yaml' file as suggested by @ClausKlein in #47. The rules enforce the style that was generally in use in the .cmake files in the repo and helped highlight places where things were inconsistent. I've added a simple analyze.ps1 that runs cmake-lint across all files in the Git repo, and a Job to the existing CI Workflow that uses analyze.ps1 to enforce the rules at CI- and PR- time.