-
Notifications
You must be signed in to change notification settings - Fork 41
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
Conversation
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]>
@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. |
37f280f
to
f58b131
Compare
network/cloud/cloudrpc.proto
Outdated
// bgp | ||
Bgp bgp = 2 [(google.api.field_behavior) = REQUIRED]; | ||
BgpRouter bgp_router = 2 [(google.api.field_behavior) = REQUIRED]; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
network/cloud/cloudrpc.proto
Outdated
// Update BgpRouter request | ||
message UpdateBgpRouterRequest { | ||
// updated bgp router info | ||
BgpRouter bgp_router = 2 [(google.api.field_behavior) = REQUIRED]; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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]>
f58b131
to
6237793
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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]