Skip to content

PB-49603 - Go-cli re-enable staticcheck rules#75

Merged
speatzle merged 2 commits intopassbolt:v5from
cedricherzog-passbolt:feature/PB-49603_Go-cli-re-enable-staticcheck-rules
Mar 9, 2026
Merged

PB-49603 - Go-cli re-enable staticcheck rules#75
speatzle merged 2 commits intopassbolt:v5from
cedricherzog-passbolt:feature/PB-49603_Go-cli-re-enable-staticcheck-rules

Conversation

@cedricherzog-passbolt
Copy link

Fix all staticcheck lint warnings across go-passbolt (SDK) and go-passbolt-cli (CLI). After this change, make lint passes cleanly with zero warnings.

Changes include:

Lowercase error strings to follow Go conventions (ST1005)
Add missing package doc comments (ST1000)
Fix malformed doc comments (ST1021/ST1020/ST1022/ST1023)
Rename identifiers to follow Go naming conventions (ST1003)
Replace deprecated API calls (SA1019)
Simplify boolean comparisons (S1002)
Fix potential nil pointer dereference in tests (SA5011)
Remove unused code and assignments (U1000, SA4006)
Remove redundant break statements (S1023)

Breaking changes:

Renamed types and functions to follow Go conventions (Json → JSON, Id → ID, Http → HTTP):

  • ResourceJsonOutput → ResourceJSONOutput
  • FolderJsonOutput → FolderJSONOutput
  • GroupJsonOutput → GroupJSONOutput
  • UserJsonOutput → UserJSONOutput
  • PermissionJsonOutput → PermissionJSONOutput
  • GetHttpClient() → GetHTTPClient()
  • Various internal jsonId → jsonID, resourceId → resourceID renames

@CLAassistant
Copy link

CLAassistant commented Feb 25, 2026

CLA assistant check
All committers have signed the CLA.

@cedricherzog-passbolt cedricherzog-passbolt changed the base branch from main to v5 February 25, 2026 15:33
Signed-off-by: Cédric HERZOG <cedric.herzog@passbolt.com>
@cedricherzog-passbolt cedricherzog-passbolt force-pushed the feature/PB-49603_Go-cli-re-enable-staticcheck-rules branch from c3c53f0 to 081261c Compare February 25, 2026 16:07
… error handling

Signed-off-by: Cédric HERZOG <cedric.herzog@passbolt.com>
@cedricherzog-passbolt cedricherzog-passbolt marked this pull request as ready for review March 9, 2026 07:57
@speatzle speatzle merged commit 9f4603d into passbolt:v5 Mar 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants