-
Notifications
You must be signed in to change notification settings - Fork 2
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
Allow custom buf.yaml file for linting #243
Comments
Can you provide a sample project or describe the layout of your project? Where is the You may also be interested in https://buf.build/docs/migration-guides/migrate-v2-config-files. In v2 configs, you can easily add a buf.yaml at the root of the project and point to modules which are stored in subdirectories. |
Thank you for your response highly appreciated! Our layout is a bit sophisticated, so I try first to describe it and provide a project if needed. We have a project with proto files, which are there for self-service for all teams (to create/update/retire services and their protos). Updating the CLI and its rules happens in the background for users without any actions required from their side. So we have only an option to force users to delete the plugin (maybe by writing our own one). Alternatively, we could release the actual effective Similar to what IntelliJ provides for JSON schemas - it can pick them from the URL directly or load them from the filesystem, relative or absolute to the project. Hope it explains a bit about the problem. |
Would it be possible to include a
There are two options I could think of:
|
We could include with CLI updates the As far, as I've gathered, IntelliJ also doesn't provide an option to check in the default plugin configuration (e.g. disable continuous linting or change custom arguments for |
Currently, the plugin performs linting like:
using default Buf settings.
In case the project follows a different configuration - e.g. uses
buf.yaml
with except block:The plugin reports a warning with a suggestion to apply a fix, which contradicts the project's configuration.
A solution would be to provide a setting with path to
buf.yaml
to be used for lining.E.g.
The text was updated successfully, but these errors were encountered: