Skip to content
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

feat(bgp): cleanup the linting errors #464

Merged
merged 9 commits into from
Aug 7, 2024

Conversation

KeithWiles
Copy link
Contributor

Fix up the lint errors after changing the Makefile to remove
the options to disable the linting errors. The Makefile change
is not committed in this PR request to allow the rest of the
protobuf files to build until all protobuf files are updated.

Fixed and updated the two files bgp.proto and cloudrpc.proto files
to address the follow lint error types. Also the generated files
are included in this PR.

--disable-rule=core::0123
--disable-rule=core::0131
--disable-rule=core::0132
--disable-rule=core::0133
--disable-rule=core::0134
--disable-rule=core::0140
--disable-rule=core::0156
--disable-rule=core::0158
--disable-rule=core::0191
--disable-rule=core::0192
--disable-rule=core::0203
--disable-rule=core::0216
--disable-rule=client-libraries::4232::required-fields

Signed-off-by: Keith Wiles [email protected]

@KeithWiles KeithWiles requested a review from a team as a code owner August 7, 2024 20:53
Rename the BGP message name to BgpRouter.

Signed-off-by: Keith Wiles <[email protected]>
Clean up lint errors when option is removed.

Signed-off-by: Keith Wiles <[email protected]>
Clean up lint errors when option is removed.

Signed-off-by: Keith Wiles <[email protected]>
Clean up lint errors when option is removed.

Signed-off-by: Keith Wiles <[email protected]>
Clean up lint errors when option is removed.

Signed-off-by: Keith Wiles <[email protected]>
Clean up lint errors when option is removed.

Signed-off-by: Keith Wiles <[email protected]>
Clean up lint errors when option is removed.

Signed-off-by: Keith Wiles <[email protected]>
…:required-fields

Clean up lint errors when option is removed.

Signed-off-by: Keith Wiles <[email protected]>
@sandersms
Copy link
Contributor

@KeithWiles The Commitlint is failing on the earlier checkin's with the subject missing. You should be able to update the commit messages and do a push --force to resolve. In the meantime, I will review the changes.

@KeithWiles KeithWiles force-pushed the bgp-fix-lint-errors branch 2 times, most recently from 37f280f to f58b131 Compare August 7, 2024 21:02
// bgp
Bgp bgp = 2 [(google.api.field_behavior) = REQUIRED];
BgpRouter bgp_router = 2 [(google.api.field_behavior) = REQUIRED];
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we need a position 1 in the message? This is showing as 2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I will fix these

// Update BgpRouter request
message UpdateBgpRouterRequest {
// updated bgp router info
BgpRouter bgp_router = 2 [(google.api.field_behavior) = REQUIRED];
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be position 1 instead of position 2?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will fix

Fix up the lint errors after changing the Makefile to remove
the options to disable the linting errors. The Makefile change
is not committed in this PR request to allow the rest of the
protobuf files to build until all protobuf files are updated.

Fixed and updated the two files bgp.proto and cloudrpc.proto files
to address the follow lint error types. Also the generated files
are included in this PR.

--disable-rule=core::0123
--disable-rule=core::0131
--disable-rule=core::0132
--disable-rule=core::0133
--disable-rule=core::0134
--disable-rule=core::0140
--disable-rule=core::0156
--disable-rule=core::0158
--disable-rule=core::0191
--disable-rule=core::0192
--disable-rule=core::0203
--disable-rule=core::0216
--disable-rule=client-libraries::4232::required-fields

Signed-off-by: Keith Wiles <[email protected]>
@KeithWiles KeithWiles force-pushed the bgp-fix-lint-errors branch from f58b131 to 6237793 Compare August 7, 2024 21:44
Copy link
Contributor

@sandersms sandersms left a comment

Choose a reason for hiding this comment

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

LGTM

@sandersms sandersms merged commit 07da63e into opiproject:main Aug 7, 2024
9 checks passed
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.

2 participants