Skip to content

Add static analysis compliance rules and fix broad except#24

Merged
JE-Chen merged 3 commits intomainfrom
dev
Apr 18, 2026
Merged

Add static analysis compliance rules and fix broad except#24
JE-Chen merged 3 commits intomainfrom
dev

Conversation

@JE-Chen
Copy link
Copy Markdown
Member

@JE-Chen JE-Chen commented Apr 18, 2026

Summary

  • Add Static Analysis Compliance section to CLAUDE.md mapping concrete rules to SonarQube (python:S*), Codacy, Pylint, and Bandit (B*) identifiers — covering complexity, duplication, naming, correctness, security hotspots, typing, and tests.
  • Fix broad except Exception: pass in ProcessManager.terminate_all (python:S5754 + python:S2737): narrow to except OSError and log at debug level instead of silently swallowing.

Test plan

  • pytest passes
  • python -c "from test_pioneer.executor.run.process_manager import process_manager" imports cleanly (no circular import from new logger import)
  • SonarQube / Codacy scan reports no new issues on the touched files

JE-Chen added 3 commits April 18, 2026 01:06
Pass argument list to subprocess.Popen on all platforms instead of
using shell=True on Windows. Use shlex.split with posix=False on
Windows to preserve backslash paths, and accept pre-split lists.
Add Static Analysis Compliance section to CLAUDE.md covering SonarQube,
Codacy, Pylint, and Bandit rules for complexity, duplication, naming,
correctness, security, typing, and tests.

Narrow broad except Exception in ProcessManager.terminate_all to OSError
and log at debug level instead of silently swallowing (python:S5754,
python:S2737).
@sonarqubecloud
Copy link
Copy Markdown

@codacy-production
Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 1 medium

Alerts:
⚠ 1 issue (≤ 0 issues of at least minor severity)

Results:
1 new issue

Category Results
Security 1 medium

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@JE-Chen JE-Chen merged commit ecf758b into main Apr 18, 2026
13 of 14 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