Skip to content

scipy style bounds (replacement for list of lower and upper bounds)

14aa455
Select commit
Loading
Failed to load commit list.
Open

scipy style bounds (replacement for list of lower and upper bounds) #6

scipy style bounds (replacement for list of lower and upper bounds)
14aa455
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Apr 18, 2026 in 20s

Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 53 in pso_examples.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the unused local variable "rho" with "_".

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMw30EzrWDwSmZU7&open=AZ2guMw30EzrWDwSmZU7&pullRequest=6

Check warning on line 58 in pso_examples.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the unused local variable "P" with "_".

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMw30EzrWDwSmZU-&open=AZ2guMw30EzrWDwSmZU-&pullRequest=6

Check warning on line 53 in pso_examples.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the unused local variable "E" with "_".

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMw30EzrWDwSmZU8&open=AZ2guMw30EzrWDwSmZU8&pullRequest=6

Check warning on line 21 in pyswarm/pso.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Function "pso" has 14 parameters, which is greater than the 13 authorized.

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMza0EzrWDwSmZVB&open=AZ2guMza0EzrWDwSmZVB&pullRequest=6

Check warning on line 58 in pso_examples.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the unused local variable "rho" with "_".

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMw30EzrWDwSmZU9&open=AZ2guMw30EzrWDwSmZU9&pullRequest=6

Check failure on line 19 in pyswarm/pso.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMza0EzrWDwSmZVC&open=AZ2guMza0EzrWDwSmZVC&pullRequest=6

Check warning on line 48 in pso_examples.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the unused local variable "E" with "_".

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMw30EzrWDwSmZU6&open=AZ2guMw30EzrWDwSmZU6&pullRequest=6

Check warning on line 63 in pso_examples.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the unused local variable "rho" with "_".

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMw30EzrWDwSmZU_&open=AZ2guMw30EzrWDwSmZU_&pullRequest=6

Check warning on line 159 in pyswarm/pso.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a "numpy.random.Generator" here instead of this legacy function.

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMza0EzrWDwSmZVG&open=AZ2guMza0EzrWDwSmZVG&pullRequest=6

Check warning on line 158 in pyswarm/pso.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a "numpy.random.Generator" here instead of this legacy function.

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMza0EzrWDwSmZVF&open=AZ2guMza0EzrWDwSmZVF&pullRequest=6

Check warning on line 10 in pyswarm/pso.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "x".

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMza0EzrWDwSmZVA&open=AZ2guMza0EzrWDwSmZVA&pullRequest=6

Check warning on line 124 in pyswarm/pso.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a "numpy.random.Generator" here instead of this legacy function.

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMza0EzrWDwSmZVD&open=AZ2guMza0EzrWDwSmZVD&pullRequest=6

Check warning on line 153 in pyswarm/pso.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a "numpy.random.Generator" here instead of this legacy function.

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMza0EzrWDwSmZVE&open=AZ2guMza0EzrWDwSmZVE&pullRequest=6

Check failure on line 17 in pso_examples.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 'The optimum is at:' 3 times.

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMw30EzrWDwSmZU4&open=AZ2guMw30EzrWDwSmZU4&pullRequest=6

Check warning on line 48 in pso_examples.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the unused local variable "P" with "_".

See more on https://sonarcloud.io/project/issues?id=eggzec_pyswarm&issues=AZ2guMw30EzrWDwSmZU5&open=AZ2guMw30EzrWDwSmZU5&pullRequest=6