Skip to content

Fix sonar issues for server/recCeiver (only)#157

Open
anderslindho wants to merge 15 commits intomasterfrom
fix-sonar-issues
Open

Fix sonar issues for server/recCeiver (only)#157
anderslindho wants to merge 15 commits intomasterfrom
fix-sonar-issues

Conversation

@anderslindho
Copy link
Copy Markdown
Contributor

No description provided.

@anderslindho anderslindho self-assigned this May 7, 2026
@anderslindho anderslindho force-pushed the fix-sonar-issues branch 4 times, most recently from 553a340 to 331cc71 Compare May 7, 2026 11:32
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

Comment thread server/tests/integration/docker_compose.py
Comment thread server/recceiver/mock_client.py
return [
channel
for channel in self.cf.values()
if any(prop["name"] == "pvStatus" and prop["value"] == "Active" for prop in channel["properties"])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use enums for some of these. Would be good to split up cfstore into

  • cfstore
    • store (actual processors)
    • recc_cf_client (all methods used to push to cf)
    • model (conversion between types, and types)

or something. then can import from model maybe.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You do realise that I am doing the bare minimum to get our sonar score better, right?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I move mean you can import from cfstore to get the "Active". so this would be simpler.

run: |
python -m pip install --upgrade pip
pip install .
python - <<'PY'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this feels ugly, couldn't it be simpler in pure bash?

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.

2 participants