New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a JSON Schema to improve developer experience in VS Code #5415
Comments
I have been toying around with the concept here : https://gist.github.com/amarcadet/40bbd809928b64dd54b92c5e2cd87437 I might update it if I find some time to work on it but this first draft illustrates every required concept and also manage to describe :
With the little experience I got from writing this first draft I don't think it could be generated without adding a lot of annotation, comments and configuration in the existing codebase to use JSON Schema to its full potential. I will try to update it in the coming days but that's a lot of work and time, I don't know if I be able to keep up so I share it here for anyone interested in contributing. |
The experience of maintaining large swiftlint configuration files can be tedious, it would be great to add a JSON Schema describing the configuration file allowing VS Code to lint and provide autocomplete.
The Schema could be contributed to https://www.schemastore.org/json/ or manually configured in VS Code
settings.json
like so:I have manually written a partial Schema to test the idea (see below) but I think it would be better to generate it from the code and parameters itself.
Note that thanks to JSON Schema
anyOf
it is possible to document both implicit and explicit rule configuration (see exemple with ruleaccessibility_label_for_image
below).The text was updated successfully, but these errors were encountered: