Skip to content

replacement conf updated

883b7d0
Select commit
Loading
Failed to load commit list.
Merged

Major replacement refactoring #449

replacement conf updated
883b7d0
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Mar 18, 2026 in 38s

Annotations

Check failure on line 235 in emf/model_merger/replacement.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "pmd:scenarioDate" 8 times.

See more on https://sonarcloud.io/project/issues?id=Baltic-RCC_EMF&issues=AZzy-g0lt5t5DmIVUjKx&open=AZzy-g0lt5t5DmIVUjKx&pullRequest=449

Check warning on line 457 in emf/model_merger/replacement.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this comprehension with passing the iterable to the collection constructor call

See more on https://sonarcloud.io/project/issues?id=Baltic-RCC_EMF&issues=AZzy-g0lt5t5DmIVUjK3&open=AZzy-g0lt5t5DmIVUjK3&pullRequest=449

Check failure on line 121 in emf/model_merger/replacement.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 'pmd:TSO' 5 times.

See more on https://sonarcloud.io/project/issues?id=Baltic-RCC_EMF&issues=AZzy-g0lt5t5DmIVUjKu&open=AZzy-g0lt5t5DmIVUjKu&pullRequest=449

Check failure on line 228 in emf/model_merger/replacement.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "pmd:TSO" 3 times.

See more on https://sonarcloud.io/project/issues?id=Baltic-RCC_EMF&issues=AZzy-g0lt5t5DmIVUjKw&open=AZzy-g0lt5t5DmIVUjKw&pullRequest=449

Check failure on line 206 in emf/model_merger/replacement.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 32 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=Baltic-RCC_EMF&issues=AZzy-g0lt5t5DmIVUjKz&open=AZzy-g0lt5t5DmIVUjKz&pullRequest=449

Check failure on line 310 in emf/model_merger/replacement.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Specify an exception class to catch or reraise the exception

See more on https://sonarcloud.io/project/issues?id=Baltic-RCC_EMF&issues=AZzy-g0lt5t5DmIVUjK2&open=AZzy-g0lt5t5DmIVUjK2&pullRequest=449

Check failure on line 234 in emf/model_merger/replacement.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "pmd:timeHorizon" 5 times.

See more on https://sonarcloud.io/project/issues?id=Baltic-RCC_EMF&issues=AZzy-g0lt5t5DmIVUjKv&open=AZzy-g0lt5t5DmIVUjKv&pullRequest=449

Check failure on line 303 in emf/model_merger/replacement.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 'pmd:timeHorizon' 4 times.

See more on https://sonarcloud.io/project/issues?id=Baltic-RCC_EMF&issues=AZzy-g0lt5t5DmIVUjKt&open=AZzy-g0lt5t5DmIVUjKt&pullRequest=449

Check warning on line 266 in emf/model_merger/replacement.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a parameter to the parent lambda function and use variable "target_weekday" as its default value; The value of "target_weekday" might change at the next loop iteration.

See more on https://sonarcloud.io/project/issues?id=Baltic-RCC_EMF&issues=AZzy-g0lt5t5DmIVUjK1&open=AZzy-g0lt5t5DmIVUjK1&pullRequest=449

Check warning on line 252 in emf/model_merger/replacement.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a parameter to the parent lambda function and use variable "priority_list" as its default value; The value of "priority_list" might change at the next loop iteration.

See more on https://sonarcloud.io/project/issues?id=Baltic-RCC_EMF&issues=AZzy-g0lt5t5DmIVUjK0&open=AZzy-g0lt5t5DmIVUjK0&pullRequest=449

Check failure on line 20 in emf/model_merger/replacement.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 35 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=Baltic-RCC_EMF&issues=AZzy-g0lt5t5DmIVUjKy&open=AZzy-g0lt5t5DmIVUjKy&pullRequest=449