Skip to content

Conversation

ajain-work
Copy link
Contributor

No description provided.

@ajain-work ajain-work changed the title Proto formatted. Proto corrected. Apr 14, 2022
Copy link
Contributor

@mkundu1 mkundu1 left a comment

Choose a reason for hiding this comment

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

Are you making the same change in Fluent also?

rpc executeCommand(ExecuteCommandRequest) returns (ExecuteCommandResponse) {}
rpc getSpecs(GetSpecsRequest) returns (GetSpecsResponse) {}
rpc getStaticInfo(GetStaticInfoRequest) returns (GetStaticInfoResponse) {}
rpc initDatamodel(InitDatamodelRequest) returns (InitDatamodelResponse) {
Copy link
Collaborator

@dnwillia-work dnwillia-work Apr 14, 2022

Choose a reason for hiding this comment

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

This one is a bit annoying isn't it? I wonder if AllowShortBlocksOnASingleLine: Empty would help here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Strange though, when I format the files it does not do that. Here's my commands:

D:\ANSYSDev\NoBackup\pyansys\pyfluent\protos\ansys\api\fluent\v0>clang-format -style=file datamodel_se.proto > output.txt
D:\ANSYSDev\NoBackup\pyansys\pyfluent\protos\ansys\api\fluent\v0>move /y output.txt datamodel_se.proto
        1 file(s) moved.
D:\ANSYSDev\NoBackup\pyansys\pyfluent\protos\ansys\api\fluent\v0>clang-format -version
clang-format version 13.0.0 (https://github.com/llvm/llvm-project d7b669b3a30345cfcdb2fde2af6f48aa4b94845d)

Diffs on this proto look like this:
image

Copy link
Collaborator

@dnwillia-work dnwillia-work Apr 14, 2022

Choose a reason for hiding this comment

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

I added the extra option in #310 and moved the options file up one level in case we use it for other things.

@dnwillia-work
Copy link
Collaborator

@ajain-work I guess we can abandon this one since pre-commit is configured instead now.

@ajain-work ajain-work closed this May 4, 2022
@RobPasMue RobPasMue deleted the feat/proto_formatted branch October 24, 2022 05:30
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