Skip to content

Accept pool argument, instead of instantiating multiprocessing

55fae0c
Select commit
Loading
Failed to load commit list.
Open

Accept pool argument, instead of instantiating multiprocessing #16

Accept pool argument, instead of instantiating multiprocessing
55fae0c
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Apr 18, 2026 in 27s

Quality Gate failed

Failed conditions
D 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 failure on line 19 in pyswarm/pso.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to always return tuples of the same length.

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

Check warning on line 123 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=AZ2guOr0r9jJuyXHGDcu&open=AZ2guOr0r9jJuyXHGDcu&pullRequest=16

Check warning on line 160 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=AZ2guOr0r9jJuyXHGDcv&open=AZ2guOr0r9jJuyXHGDcv&pullRequest=16

Check warning on line 22 in pyswarm/pso.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 166 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=AZ2guOr0r9jJuyXHGDcx&open=AZ2guOr0r9jJuyXHGDcx&pullRequest=16

Check warning on line 165 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=AZ2guOr0r9jJuyXHGDcw&open=AZ2guOr0r9jJuyXHGDcw&pullRequest=16

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 51 to the 15 allowed.

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