Skip to content

fix(proto): resolve protolint line-length violations#582

Open
yvonnedevlinrh wants to merge 2 commits into
complytime:mainfrom
yvonnedevlinrh:fix/protolint-violations
Open

fix(proto): resolve protolint line-length violations#582
yvonnedevlinrh wants to merge 2 commits into
complytime:mainfrom
yvonnedevlinrh:fix/protolint-violations

Conversation

@yvonnedevlinrh

Copy link
Copy Markdown

Summary

Wrap long comments in api/plugin/plugin.proto to stay within the 80-character protolint limit. Add protolint:disable directives for the go_package option line (cannot be shortened) and the CONFIDENCE_LEVEL_NOT_SET enum value (deliberate naming choice per spec R29 for 1:1 mapping with go-gemara, not an _UNSPECIFIED case).

Apply the same fixes to the spec contract proto.

Generated Go code is unchanged - all fixes are proto comments only.

This failure was pre-existing on main.

Related Issues

Review Hints

  • Only two .proto files are changed. No generated code, no Go source, no behavioral changes.
  • The protolint:disable:next directives follow the same pattern already used in specs/001-gemara-native-workflow/contracts/plugin.proto:10 for the go_package line.
  • The CONFIDENCE_LEVEL_NOT_SET name is intentionally preserved per spec R29 (specs/001-gemara-native-workflow/research.md:342) - go-gemara uses Undetermined (iota 0) as its zero value, while the proto uses NOT_SET (value 0) to distinguish "no confidence reported" from "confidence evaluated but undetermined."

Wrap long comments in api/plugin/plugin.proto to stay within the
80-character protolint limit. Add protolint:disable directives for
the go_package option line (cannot be shortened) and the
CONFIDENCE_LEVEL_NOT_SET enum value (deliberate naming choice per
spec R29 for 1:1 mapping with go-gemara, not an _UNSPECIFIED case).

Apply the same fixes to the spec contract proto.

Generated Go code is unchanged — all fixes are proto comments only.

This failure was pre-existing on main.

Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Yvonne Devlin <ydevlin@redhat.com>
@yvonnedevlinrh yvonnedevlinrh requested a review from a team as a code owner June 12, 2026 14:50
Two comments in specs/.../contracts/plugin.proto exceeded the
80-character protolint limit (lines 36 and 74, both 84 chars).
Wrap them to fix the remaining CI lint failure.

Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Yvonne Devlin <ydevlin@redhat.com>

@em-redhat em-redhat left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm, all tests passing now

Comment thread specs/001-gemara-native-workflow/contracts/plugin.proto Outdated
Comment thread specs/001-gemara-native-workflow/contracts/plugin.proto Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants