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

refact(client): adapt import & style with latest code #369

Merged
merged 2 commits into from
Nov 18, 2022
Merged

Conversation

imbajin
Copy link
Member

@imbajin imbajin commented Nov 14, 2022

check all class in client module manually

and the basic rule is we should avoid using a special align style, it's not friendly for normal users to format the code (Greatly reduces the efficiency of commit)

use the config file to format the file automatically is more sensible, and we could reduce to review the space/align/empty line/wrong import also.

check all class manually
@imbajin imbajin changed the title refact(client): adapt align format in client refact(client): adapt import & style with latest code Nov 14, 2022
@imbajin imbajin marked this pull request as ready for review November 14, 2022 12:23
@codecov
Copy link

codecov bot commented Nov 14, 2022

Codecov Report

Merging #369 (4db5a10) into master (b1bf291) will decrease coverage by 0.11%.
The diff coverage is 19.19%.

@@             Coverage Diff              @@
##             master     #369      +/-   ##
============================================
- Coverage     57.52%   57.40%   -0.12%     
  Complexity     1864     1864              
============================================
  Files           263      263              
  Lines         10272    10244      -28     
  Branches        877      875       -2     
============================================
- Hits           5909     5881      -28     
  Misses         3979     3979              
  Partials        384      384              
Impacted Files Coverage Δ
...n/java/org/apache/hugegraph/api/auth/GroupAPI.java 100.00% <ø> (ø)
.../java/org/apache/hugegraph/api/auth/LogoutAPI.java 100.00% <ø> (ø)
...java/org/apache/hugegraph/api/auth/ProjectAPI.java 100.00% <ø> (ø)
.../java/org/apache/hugegraph/api/auth/TargetAPI.java 100.00% <ø> (ø)
...in/java/org/apache/hugegraph/api/auth/UserAPI.java 100.00% <ø> (ø)
...n/java/org/apache/hugegraph/api/graph/EdgeAPI.java 93.87% <0.00%> (ø)
...java/org/apache/hugegraph/api/graph/VertexAPI.java 76.78% <0.00%> (ø)
...ava/org/apache/hugegraph/api/graphs/GraphsAPI.java 68.08% <0.00%> (ø)
...g/apache/hugegraph/api/gremlin/GremlinRequest.java 72.22% <ø> (ø)
.../org/apache/hugegraph/api/schema/EdgeLabelAPI.java 85.71% <ø> (ø)
... and 85 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

EdgeLabelApiTest.class,
IndexLabelApiTest.class,
SchemaApiTest.class,
PropertyKeyApiTest.class,
Copy link
Contributor

Choose a reason for hiding this comment

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

please check

Copy link
Member Author

@imbajin imbajin Nov 17, 2022

Choose a reason for hiding this comment

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

@javeme how many spaces shall we keep in @Annotation({p1, p2, p3}) ? Is 4 spaces right?

and we could unify the annotation style

image

MetricsManagerTest.class,
HugeClientHttpsTest.class,
HugeClientTest.class
PropertyKeyTest.class,
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

Copy link
Member Author

Choose a reason for hiding this comment

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

same as the annotation style problem

CommonUtilTest.class,
IdUtilTest.class,
SplicingIdGeneratorTest.class
VertexSerializerTest.class,
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -124,14 +124,17 @@ private void writeGraphElements() {
vadasB.property("price", "120");
vadasB.id(12345);

Edge peterCreateLop = new Edge("created").source(peter).target(lop).property("date", "2017-03-24");
Edge peterCreateLop = new Edge("created").source(peter).target(lop)
.property("date", "2017-03-24");
Copy link
Contributor

Choose a reason for hiding this comment

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

align with .source?

Copy link
Member Author

@imbajin imbajin Nov 17, 2022

Choose a reason for hiding this comment

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

a little strange, it looks fine in ide
image

Oh, got the reason, the previous line have a virtual comment.... and I align it manually

@imbajin imbajin merged commit 6bbaa21 into master Nov 18, 2022
@imbajin imbajin deleted the client-style branch November 18, 2022 17:31
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