Joel Drapper
Joel Drapper
Hey everyone, I’ve been writing a JSON schema for Rubocop by hand and I have only the Naming, Security and Style cops left to specify. https://github.com/joeldrapper/rubyschema?tab=readme-ov-file#rubocopyml The schema is here...
I believe this schema is now complete, based on the Rubocop documentation. If the Rubocop maintainers would like to adopt it, please let me know. Otherwise, I will continue to...
Great! If you can host it on something like `rubocop.org/schema.json`, I can create a redirect schema on rubyschema.org/rubocop.json that just points to the canonical schema here. It would also be...
You could always set up another subdomain, e.g. `schema.rubocop.org/latest.json` or something like that. I’m just using Cloudflare pages to deploy the `dist` folder in the RubySchema repo.
By the way, this schema was accepted by Schema Store, so it should start working for most folks by default without any config. Anyone using Zed or VSCode at least...
Yeah, I wonder if it might even make senes to generate parts of the docs form the JSON schema. For example, the parameter tables for each cop could come from...
I also just learned today that you can document each enum value. https://github.com/SchemaStore/schemastore/blob/master/CONTRIBUTING.md#documenting-enums
@bbatsov if it’s easier, I’m happy to maintain the schema on rubyschema.org and can give push access to anyone on the Rubocop team.
Unfortunately I don’t think it’s possible to have a new rule for additional properties based on the presence of a value in an array. I think it might be possible...
It might be better to have `Never` respond to all methods by raising.