BlankSpruce / gersemi

A formatter to make your CMake code the real treasure
Mozilla Public License 2.0
156 stars 8 forks source link

Add validation schema for configuration file #12

Closed fruzitent closed 11 months ago

fruzitent commented 11 months ago

Things to consider:

BlankSpruce commented 11 months ago

I'll take a look at this PR on the weekend. Could you give me a hint how to use such schema? What does it solve?

fruzitent commented 11 months ago

I'll take a look at this PR on the weekend. Could you give me a hint how to use such schema? What does it solve?

Header on the first line, tells LSP which schema to use.

Quite a few examples of these can be found at https://schemastore.org.

BlankSpruce commented 11 months ago

Although I don't use this tooling myself and I don't expect to change .gersemirc per project too often I rather like the idea of making configuration more user-friendly. I've reimplemented most of this change (description below) but I've still made you the main author of this change.

Significant changes to your original version:

Once I solve the issue #13 I hope to release new version with your changes. Thank you for your contribution.