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

fix checkstyle and enable checkstyle plugin #331

Merged
merged 6 commits into from
Oct 8, 2022
Merged

fix checkstyle and enable checkstyle plugin #331

merged 6 commits into from
Oct 8, 2022

Conversation

simon824
Copy link
Member

closed #330

@codecov
Copy link

codecov bot commented Aug 30, 2022

Codecov Report

Merging #331 (5e552a6) into master (c091e6b) will decrease coverage by 0.01%.
The diff coverage is 71.42%.

@@             Coverage Diff              @@
##             master     #331      +/-   ##
============================================
- Coverage     72.72%   72.71%   -0.02%     
  Complexity     1849     1849              
============================================
  Files           242      242              
  Lines          8104     8106       +2     
  Branches        717      717              
============================================
  Hits           5894     5894              
- Misses         1827     1829       +2     
  Partials        383      383              
Impacted Files Coverage Δ
...java/com/baidu/hugegraph/structure/constant/T.java 0.00% <ø> (ø)
...java/com/baidu/hugegraph/structure/graph/Path.java 73.52% <0.00%> (-2.23%) ⬇️
...com/baidu/hugegraph/exception/ServerException.java 69.04% <50.00%> (-1.69%) ⬇️
.../java/com/baidu/hugegraph/driver/GraphManager.java 87.17% <100.00%> (ø)

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

coderzc
coderzc previously approved these changes Aug 30, 2022
@coderzc coderzc requested a review from imbajin August 30, 2022 11:10
Copy link
Contributor

@javeme javeme left a comment

Choose a reason for hiding this comment

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

we need this feature, it may bring a lot of convenience

@@ -2,86 +2,216 @@
<!DOCTYPE module PUBLIC
Copy link
Member Author

Choose a reason for hiding this comment

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

This file copy from https://github.com/apache/incubator-hugegraph/blob/master/style/checkstyle.xml , to keep consistent with hg server

@simon824
Copy link
Member Author

hi @imbajin, please take a look at this pr when free ,thanks.

Comment on lines +59 to +74
Vertex theMatrix = graph.addVertex(T.LABEL,
"movie", "title", "The Matrix", "released", 1999);
Vertex keanu = graph.addVertex(T.LABEL,
"person", "name", "keanu Reeves", "born", 1964);
Vertex carrie = graph.addVertex(T.LABEL,
"person", "name", "carrie-anne Moss", "born", 1967);
Vertex laurence = graph.addVertex(T.LABEL,
"person", "name", "laurence Fishburne", "born", 1961);
Vertex hugo = graph.addVertex(T.LABEL,
"person", "name", "hugo Weaving", "born", 1960);
Vertex lillyW = graph.addVertex(T.LABEL,
"person", "name", "Lilly Wachowski", "born", 1967);
Vertex lanaW = graph.addVertex(T.LABEL,
"person", "name", "Lana Wachowski", "born", 1965);
Vertex joelS = graph.addVertex(T.LABEL,
"person", "name", "Joel Silver", "born", 1952);
Copy link
Member

Choose a reason for hiding this comment

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

seems no need to wrap new line in 59~74

Copy link
Member Author

Choose a reason for hiding this comment

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

LineLength longer than 100 here

Copy link
Member

Choose a reason for hiding this comment

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

OK, keep them

Comment on lines +87 to +89
Vertex theMatrixReloaded = graph.addVertex(T.LABEL,
"movie", "title",
"The Matrix Reloaded", "released", 2003);
Copy link
Member

Choose a reason for hiding this comment

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

Is it a rule? Seems a little strange?

@imbajin imbajin merged commit 8261043 into apache:master Oct 8, 2022
Comment on lines +24 to +25
public static final String ID = "id";
public static final String LABEL = "label";
Copy link
Member

Choose a reason for hiding this comment

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

Why change this?

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe to adapt code style for the const var

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Feature] fix checkstyle and enable checkstyle plugin
4 participants