[PR #2096] [MERGED] Fix SonarCloud issues #16423

Open
opened 2026-08-05 04:06:07 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2096
Author: @bcmmbaga
Created: 6/5/2024
Status: Merged
Merged: 6/6/2024
Merged by: @bcmmbaga

Base: add-process-posture-checkHead: fix-sonarlint-fix


📝 Commits (5)

  • f6b11ab Fix posture check sonar lint errors
  • 4593c35 Refactor error handling and streamline connection process in grpc client
  • 9206eca Refactor GRPC server code for improved readability
  • e0a1996 Refactoring
  • 7e2e492 Remove duplicate GetPeerAppliedPostureChecks method

📊 Changes

7 files changed (+252 additions, -213 deletions)

View changed files

📝 management/client/grpc.go (+49 -41)
📝 management/server/grpcserver.go (+82 -52)
📝 management/server/peer.go (+0 -60)
📝 management/server/posture/checks.go (+5 -25)
📝 management/server/posture/os_version.go (+2 -7)
📝 management/server/posture/process.go (+31 -24)
📝 management/server/posture_checks.go (+83 -4)

📄 Description

Describe your changes

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2096 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 6/5/2024 **Status:** ✅ Merged **Merged:** 6/6/2024 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `add-process-posture-check` ← **Head:** `fix-sonarlint-fix` --- ### 📝 Commits (5) - [`f6b11ab`](https://github.com/netbirdio/netbird/commit/f6b11ab287bb1f646f762ff2b150bba1109ed2a4) Fix posture check sonar lint errors - [`4593c35`](https://github.com/netbirdio/netbird/commit/4593c35f60a92f8b68d9fddc1fed12d04eb203fe) Refactor error handling and streamline connection process in grpc client - [`9206eca`](https://github.com/netbirdio/netbird/commit/9206eca05ab678a3756f8d794135a369f10ff70e) Refactor GRPC server code for improved readability - [`e0a1996`](https://github.com/netbirdio/netbird/commit/e0a1996445e8af951c868e2bfaa11e786571ee59) Refactoring - [`7e2e492`](https://github.com/netbirdio/netbird/commit/7e2e4921296bc053469fdc78683deb5980acce1b) Remove duplicate GetPeerAppliedPostureChecks method ### 📊 Changes **7 files changed** (+252 additions, -213 deletions) <details> <summary>View changed files</summary> 📝 `management/client/grpc.go` (+49 -41) 📝 `management/server/grpcserver.go` (+82 -52) 📝 `management/server/peer.go` (+0 -60) 📝 `management/server/posture/checks.go` (+5 -25) 📝 `management/server/posture/os_version.go` (+2 -7) 📝 `management/server/posture/process.go` (+31 -24) 📝 `management/server/posture_checks.go` (+83 -4) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [x] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 04:06:07 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#16423