-
Notifications
You must be signed in to change notification settings - Fork 19
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
checkstyle_parameter #297
Conversation
@@ -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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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)) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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
No description provided.