Skip to content

Improve code quality by reducing complexity and fixing SonarQube issues across bessctl and related modules - #31

Merged
ak2btvm merged 2 commits into
cdacmasterfrom
bess-sq-critical-issues-fix
Apr 17, 2026
Merged

Improve code quality by reducing complexity and fixing SonarQube issues across bessctl and related modules#31
ak2btvm merged 2 commits into
cdacmasterfrom
bess-sq-critical-issues-fix

Conversation

@bhagathkrishnacdac

Copy link
Copy Markdown

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
This PR addresses multiple SonarQube-reported issues across bessctl, pybess, and supporting scripts by reducing cognitive complexity in critical functions, removing unused parameters, replacing duplicated literals with constants, fixing improper exception handling, and improving JavaScript code standards. These changes enhance maintainability, readability, and overall code quality without altering functionality.

Which issue(s) this PR fixes:

Fixes #30

Test Report Added?:

/kind TESTED

Test Report:

NA

Special notes for your reviewer:
NIL

…omplexity, remove unused parameters, replace duplicated literals with constants, and fix code quality issues.

@ak2btvm ak2btvm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@ak2btvm
ak2btvm merged commit 12a7ee1 into cdacmaster Apr 17, 2026
10 checks 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.

Refactor and Code Quality Cleanup for BESS Control Plane and Utilities

2 participants