Skip to content

Comments

refact: fix some code style with check plugin#385

Draft
seagle-yuan wants to merge 4 commits intoapache:masterfrom
seagle-yuan:checkstyle
Draft

refact: fix some code style with check plugin#385
seagle-yuan wants to merge 4 commits intoapache:masterfrom
seagle-yuan:checkstyle

Conversation

@seagle-yuan
Copy link

fix checkstyle check

@codecov
Copy link

codecov bot commented Nov 28, 2022

Codecov Report

Attention: Patch coverage is 24.48980% with 37 lines in your changes are missing coverage. Please review.

Project coverage is 62.54%. Comparing base (0a72868) to head (c410bb7).
Report is 94 commits behind head on master.

Files Patch % Lines
.../hugegraph/loader/flink/HugeGraphOutputFormat.java 0.00% 11 Missing ⚠️
...e/hugegraph/loader/spark/HugeGraphSparkLoader.java 0.00% 11 Missing ⚠️
...e/hugegraph/serializer/direct/HBaseSerializer.java 0.00% 8 Missing ⚠️
...e/hugegraph/serializer/direct/reuse/BytesDemo.java 0.00% 6 Missing ⚠️
...rg/apache/hugegraph/exception/ServerException.java 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #385      +/-   ##
============================================
- Coverage     62.58%   62.54%   -0.04%     
- Complexity      894     1866     +972     
============================================
  Files            91      260     +169     
  Lines          4383     9407    +5024     
  Branches        515      872     +357     
============================================
+ Hits           2743     5884    +3141     
- Misses         1437     3141    +1704     
- Partials        203      382     +179     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

exception.cause = (String) getByKeys(json, CAUSE_KEYS);
exception.trace = getByKeys(json, TRACE_KEYS);
} catch (Exception ignored) {
LOG.error(" ServerException excepiton ");
Copy link
Member

Choose a reason for hiding this comment

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

we need log here? @javeme

and seems have 2 extra spaces

conf = path;
}
} catch (Exception ignored) {
LOG.error("hugeConfig exception");
Copy link
Member

Choose a reason for hiding this comment

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

same question

Comment on lines +439 to +440
vMapping = new org.apache.hugegraph.loader.mapping.VertexMapping(
idFields.get(0), true);
Copy link
Member

Choose a reason for hiding this comment

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

if line < 100, use one line instead

Copy link
Author

Choose a reason for hiding this comment

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

if one line,there is 105 char
image

Comment on lines +314 to +316
request.vertices((List<Vertex>) (Object) graphElements)
.updatingStrategies(updateStrategyMap)
.createIfNotExist(true);
Copy link
Member

Choose a reason for hiding this comment

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

align problem?

Comment on lines +321 to +323
.updatingStrategies(updateStrategyMap)
.checkVertex(isCheckVertex)
.createIfNotExist(true);
Copy link
Member

Choose a reason for hiding this comment

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

same, and why we change the name? (seems optional)

Comment on lines +132 to +133
.updatingStrategies(this.mapping.updateStrategies())
.createIfNotExist(true);
Copy link
Member

Choose a reason for hiding this comment

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

same, and so as others

@imbajin
Copy link
Member

imbajin commented Nov 29, 2022

image


private static final long serialVersionUID = 6335623004322652358L;

protected static final Logger LOG = Log.logger(ServerException.class);
Copy link
Contributor

Choose a reason for hiding this comment

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

mark as private?

@Configuration
public class HubbleConfig {

protected static final Logger LOG = Log.logger(HubbleConfig.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

g.updateVertices(req.build());
BatchVertexRequest.Builder request = new BatchVertexRequest.Builder();
request.vertices((List<Vertex>) (Object) graphElements)
.updatingStrategies(updateStrategyMap)
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 '.'

.createIfNotExist(true);
BatchEdgeRequest.Builder request = new BatchEdgeRequest.Builder();
request.edges((List<Edge>) (Object) elements)
.updatingStrategies(this.mapping.updateStrategies())
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

"not allowed to insert, because already exist a vertex " +
"Connection refused",
"The server is being shutting down",
"not allowed to insert, because already exist a vertex " +
Copy link
Contributor

Choose a reason for hiding this comment

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

keep the origin style?

@imbajin
Copy link
Member

imbajin commented Dec 10, 2022

@seagle-yuan will this PR fixed before release? (before next week) or just leave it in next release

@imbajin imbajin changed the title fix checkstyle check refact: fix some code style with check plugin Dec 10, 2022
@github-actions
Copy link

github-actions bot commented Jan 9, 2023

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

add(peter);
add(lop);
add(vadasB);
}};
Copy link
Contributor

Choose a reason for hiding this comment

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

can we keep the origin style?

add(peterCreateLop);
}};
add(peterCreateLop);
}};
Copy link
Contributor

Choose a reason for hiding this comment

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

can we keep the origin style?

@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@javeme javeme added ci Continuous integration and removed inactive labels Feb 13, 2023
@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@liuxiaocs7
Copy link
Contributor

Hi, @seagle-yuan, any update with this?

@imbajin
Copy link
Member

imbajin commented Jul 18, 2023

Hi, @seagle-yuan, any update with this?

could follow this PR and finish it

@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@imbajin imbajin marked this pull request as draft May 26, 2025 13:03
@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@github-actions
Copy link

github-actions bot commented Sep 2, 2025

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@github-actions github-actions bot added inactive and removed inactive labels Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous integration client hugegraph-client hubble hugegraph-hubble java Pull requests that update Java code loader hugegraph-loader size:XL This PR changes 500-999 lines, ignoring generated files. tools hugegraph-tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants