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

Code cleanup to correct issues reported by Sonar (Severity: high - part 2) #2974

Merged
merged 142 commits into from
Apr 25, 2024

Conversation

rolnico
Copy link
Member

@rolnico rolnico commented Apr 11, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Quality

What is the current behavior?

What is the new behavior (if this is a feature change)?
Follows #2967 and #2971.
Fixes Sonar issues identified as high severity in the modules:

  • commons
  • computation-local
  • contingency
  • dynamic-simulation
  • iidm

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)
Following methods were renamed in ComparisonUtils:

  • compareBytes to assertBytesEquals
  • compareTxt to assertTxtEquals
  • compareXml to assertXmlEquals

rolnico added 30 commits April 5, 2024 15:42
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
…org.apache.commons.io.IOUtils

Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
rolnico added 9 commits April 11, 2024 15:49
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
@rolnico rolnico marked this pull request as ready for review April 16, 2024 06:37
Base automatically changed from nro/cleanup_severity_high_1 to main April 25, 2024 07:05
rolnico added 9 commits April 25, 2024 09:42
# Conflicts:
#	action-api/src/test/java/com/powsybl/action/json/JsonActionTest.java
#	cgmes/cgmes-conformity/src/main/java/com/powsybl/cgmes/conformity/CgmesConformity1NetworkCatalog.java
#	cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/StateVariablesExport.java
#	cgmes/cgmes-conversion/src/test/java/com/powsybl/cgmes/conversion/test/TransformerConversionTest.java
#	commons/src/main/java/com/powsybl/commons/config/ComponentDefaultConfig.java
#	commons/src/main/java/com/powsybl/commons/parameters/Parameter.java
#	computation/src/main/java/com/powsybl/computation/DefaultComputationManagerConfig.java
#	iidm/iidm-serde/src/main/java/com/powsybl/iidm/serde/XMLImporter.java
#	loadflow/loadflow-validation/src/main/java/com/powsybl/loadflow/validation/ValidationUtils.java
#	loadflow/loadflow-validation/src/main/java/com/powsybl/loadflow/validation/io/AbstractValidationFormatterWriter.java
#	time-series/time-series-api/src/main/java/com/powsybl/timeseries/TimeSeriesMetadata.java
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
@rolnico rolnico added the Breaking Change API is broken label Apr 25, 2024
Copy link

@olperr1 olperr1 merged commit 91ca8d3 into main Apr 25, 2024
6 checks passed
@olperr1 olperr1 deleted the nro/cleanup_severity_high_2 branch April 25, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Change API is broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants