Skip to content

Support plugin-specific rule links #4422

Description

@ckohnert

Feature

It looks like the buf lsp hardcodes annotation rule links to https://buf.build/docs/lint/rules/#<ruleID> which doesn't make sense for plugin-provided annotations. Ideally the annotation serialization format supports providing both a "sub rule" and the link to the rule documentation. For example, here is the output for a wrapper plugin I wrote for AIP's api-linter, but I'm unable to link to the real rule because it's hidden behind the bufplugin protocol.

Image

I'm happy to try and contribute a fix for this, but wanted to make sure this is something folks wanted to support.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions