-
Notifications
You must be signed in to change notification settings - Fork 27
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
Set DocumentationBaseURL
and DocumentationExtension
#252
Conversation
01db1ee
to
b9f0889
Compare
RuboCop made a release, so this is good to go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great idea! I just have one q about the way the version check is done, but I love this change in principle
b9f0889
to
87817c3
Compare
This allows `ruby-lsp` to link to cop documentation for this extension. Documentation here is in markdown and rubocop didn't support that until recently, so only set this when it supports both options. Otherwise it would link to non-existant html docs.
Head branch was pushed to by a user without write access
87817c3
to
07adee0
Compare
@amomchilov Let's continue this here. Automerge still seemed to be stuck, I rebased on latest main. |
``` Warning: Sorbet does not support DisabledByDefault parameter. Supported parameters are: - DocumentationBaseURL - DocumentationExtension ``` This is true. Because of Shopify#252, the top-level Sorbet config key now can be present simply by loading the config, which causes RuboCop to do some extra validating. `DisabledByDefault` is already set for all cops at the top anyways.
This allows
ruby-lsp
to link to cop documentation for this extension (notice the blue link which wasn't present before).It takes you to https://github.com/Shopify/rubocop-sorbet/blob/main/manual/cops_sorbet.md#sorbetstrictsigil
Documentation here is in markdown and rubocop didn't support that until recently, so only set this when it supports both options. Otherwise it would link to non-existant html docs.
Requires a rubocop release with rubocop/rubocop#13080, draft for now.