chore/Corrections des mauvaises pratiques
Situation actuelle
SonarQube a remonté plusieurs alertes de mauvaise pratique
Actions
ssham/lib/vault.py
-
Remove the unused local variable "unseal_response" https://glcp.idris.fr/ssi/ssham-server/-/blob/main/ssham/lib/vault.py#L51 -
Remove the unused local variable "root_gen_progress" https://glcp.idris.fr/ssi/ssham-server/-/blob/main/ssham/lib/vault.py#L86 -
Remove this assignment to local variable 'vault_requests'; the value is never used. https://glcp.idris.fr/ssi/ssham-server/-/blob/main/ssham/lib/vault.py#L106 -
Remove this assignment to local variable 'vault_requests'; the value is never used. https://glcp.idris.fr/ssi/ssham-server/-/blob/main/ssham/lib/vault.py#L150
ssham/models.py
-
Rename "certificate_serial_array" to "self" or add the missing "self" parameter. https://glcp.idris.fr/ssi/ssham-server/-/blob/main/ssham/models.py#L39 -
Rename "type" to "self" or add the missing "self" parameter. https://glcp.idris.fr/ssi/ssham-server/-/blob/main/ssham/models.py#L60 -
Rename "login" to "self" or add the missing "self" parameter. https://glcp.idris.fr/ssi/ssham-server/-/blob/main/ssham/models.py#L138
ssham/utils.py
-
Change this argument; Function "register_certificate" expects a different type https://glcp.idris.fr/ssi/ssham-server/-/blob/main/ssham/utils.py#L113
Edited by HARRY Guillaume