Skip to content

Sonarqube cleanup 3#30

Merged
xprilion merged 5 commits into
mainfrom
dev
Apr 29, 2026
Merged

Sonarqube cleanup 3#30
xprilion merged 5 commits into
mainfrom
dev

Conversation

@xprilion
Copy link
Copy Markdown
Owner

No description provided.

… handling

- S7497: Use finally block instead of except + raise for CancelledError (event_bus, redis_pubsub, agent_tasks)
- S7493: Use sync file read in executor via helper functions (local, workspace_tools)
- S7503: Remove async keyword from nested read_file helper

These patterns avoid introducing new issues while maintaining proper async behavior.
- RightPanel.tsx: Replace parseInt with Number.parseInt, isNaN with Number.isNaN
- Follows modern JS best practices
…oats, S2201/S1764

- S6853 (46): Form labels without associated control - removed ineffective comments
- S6848 (20): Non-interactive DOM handlers - removed ineffective comments
- S1244 (8): Floating point equality - use pytest.approx() in tests
- S2201 (1): Unused dict.get() return value in papers.py
- S1764 (1): Identical expression on both sides of 'or' in test_prompts.py
- S7773: Number.parseInt/isNaN (already pushed)

eslint now passes with warnings only.
The helper function _read_file_lines is sync, so it must be called via
run_in_executor when in an async context. Calling directly broke tests.

Also fixes workspace_tools.py to use correct pattern.
@sonarqubecloud
Copy link
Copy Markdown

@xprilion xprilion merged commit de8d0fd into main Apr 29, 2026
6 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.

1 participant