Skip to content

Conversation

@areina
Copy link
Collaborator

@areina areina commented Jun 3, 2025

With this change, the plugin now also validates the name of the fields against a set of preferred field names. For instance, the linting will fail if you try to define a field named updated_at and will recommend you to use last_modified_at.

Example:

proto/qdrant/cloud/iam/v1/iam.proto:237:3:field "last_updated_at" is discouraged, use "last_modified_at" instead (buf-plugin-required-fields)

At this moment I considered it isn't worth to add this functionality as a new plugin, in the future we could either rename the plugin or split the functionality.

@areina areina requested a review from a team as a code owner June 3, 2025 08:32
With this change, the plugin now also validates the name of the fields
against a set of preferred field names. For instance, the linting will
fail if you try to define a field named `updated_at` and will recommend
you to use `last_modified_at`.

At this moment I considered it isn't worth to add this functionality as
a new plugin, in the future we could either rename the plugin or split
the functionality.
@areina areina force-pushed the feat/toni/preferred-field-names branch from 14990b4 to 5208ef1 Compare June 3, 2025 11:57
Copy link
Contributor

@Robert-Stam Robert-Stam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nicely done!

@areina areina merged commit 20581c9 into main Jun 3, 2025
6 checks passed
@areina areina deleted the feat/toni/preferred-field-names branch June 3, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants