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

checkstyle_parameter #297

Merged
merged 4 commits into from
Nov 5, 2017
Merged

checkstyle_parameter #297

merged 4 commits into from
Nov 5, 2017

Conversation

yichen88
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.001%) to 12.27% when pulling e400d68 on checkstyle_parameter into 47fe1fa on master.

@yichen88 yichen88 requested a review from mathbagu October 25, 2017 15:27
@@ -184,10 +184,11 @@ public void run(CommandLine line, ToolRunningContext context) throws Exception {
private void printStateStepViolations(TableFormatter formatter, Integer stateId, OnlineStep step, List<LimitViolation> violations,
LimitViolationFilter violationsFilter) {
if (violations != null) {
List<LimitViolation> filtedViolations = violations;
Copy link
Contributor

Choose a reason for hiding this comment

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

FilteredViolation

@@ -184,10 +184,11 @@ public void run(CommandLine line, ToolRunningContext context) throws Exception {
private void printStateContingencyViolations(TableFormatter formatter, Integer stateId, String contingencyId, List<LimitViolation> violations,
LimitViolationFilter violationsFilter) {
if (violations != null) {
List<LimitViolation> filtedViolations = violations;
Copy link
Contributor

Choose a reason for hiding this comment

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

FilteredViolations

@@ -106,9 +106,6 @@ private RulesFacadeResults evaluate(String networkId, String stateId, Map<HistoD
boolean dynamicIndexUnsafe = false;
if (checkRules) {
checkRules(rules, invalidRulesIndexes, bacecaseInvalidRulesIndexes);
if ("0".equals(stateId)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you remove this block?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reassignement a pararmeter is not allowed and this one is not used after this statement, so i did not created a new XXX xxx = instanceFromParameter(as i do in other case)

if (contingencyIds != null && !contingencyIds.isEmpty()) {
runAnalysis = true;
}
if (runAnalysis) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems obvious... can you try to write it simpler

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 12.27% when pulling 1ffb2aa on checkstyle_parameter into 47fe1fa on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0006%) to 12.268% when pulling 16812a0 on checkstyle_parameter into d8a4817 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 12.318% when pulling 41a2698 on checkstyle_parameter into 849b8f7 on master.

@mathbagu mathbagu merged commit 57dd8b4 into master Nov 5, 2017
@mathbagu mathbagu deleted the checkstyle_parameter branch November 5, 2017 09:05
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