← Back to scan
File as GitHub Issue repo: shanraisshan/claude-code-best-practice

Push this scan report to shanraisshan/claude-code-best-practice

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

Bare except continues silently: Bare `except:` (or `except Exception

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… .codex/hooks/scripts/hooks.py:182
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… .codex/hooks/scripts/hooks.py:154
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… .codex/hooks/scripts/hooks.py:362
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… .codex/hooks/scripts/hooks.py:194
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… .claude/hooks/scripts/hooks.py:298
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… .claude/hooks/scripts/hooks.py:289
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… .claude/hooks/scripts/hooks.py:249
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… .claude/hooks/scripts/hooks.py:240
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… .claude/hooks/scripts/hooks.py:198
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… .claude/hooks/scripts/hooks.py:476
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… .claude/hooks/scripts/hooks.py:261
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… .codex/hooks/scripts/hooks.py:182
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… .codex/hooks/scripts/hooks.py:179
MED COMP001 [COMP001] High cognitive complexity: Function `play_sound` has cognitive complexity 21 (S… .codex/hooks/scripts/hooks.py:101
MED AGT016 Codex session log reader may expose prompts or tool-call content .codex/hooks/scripts/hooks.py:3
MED AGT013 Agent auto-approve or skip-permissions mode is easy to enable best-practice/claude-settings.md:258
MED AGT013 Agent auto-approve or skip-permissions mode is easy to enable best-practice/claude-cli-startup-flags.…:66
LOW COMP001 [COMP001] High cognitive complexity: Function `parse_args` has cognitive complexity 9 (So… .codex/hooks/scripts/hooks.py:286
LOW COMP001 [COMP001] High cognitive complexity: Function `get_audio_player` has cognitive complexity… .codex/hooks/scripts/hooks.py:60
LOW AIC003 Duplicated implementation block across source files .codex/hooks/scripts/hooks.py:47
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… .codex/hooks/scripts/hooks.py:183
Reset to top 5 21 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `shanraisshan/claude-code-best-practice`

**Score: 83/100 (B)**  ·  21 findings  ·  scanned 2026-06-05 10:02 UTC  ·  852 LOC

| Severity | Count |
|---|---|
| CRITICAL | 0 |
| HIGH | 1 |
| MEDIUM | 16 |
| LOW | 3 |

📊 [Full filterable report](https://repobility.com/scan/f3ffbfa1-6fa6-4fe1-aa03-f6299d72308b/)  ·  ![scorecard](https://repobility.com/scan/f3ffbfa1-6fa6-4fe1-aa03-f6299d72308b/report.png?v=1780653767-s2)

### Top findings

1. **HIGH** `MINED001` — Bare Except Pass
   `.codex/hooks/scripts/hooks.py:182` · CWE-755 · ✓ Repobility
2. **MEDIUM** `MINED111` — Bare except continues silently: Bare `except:` (or `except Exception
   `.codex/hooks/scripts/hooks.py:154` · ✓ Repobility
3. **MEDIUM** `MINED111` — Bare except continues silently: Bare `except:` (or `except Exception
   `.codex/hooks/scripts/hooks.py:362` · ✓ Repobility
4. **MEDIUM** `MINED111` — Bare except continues silently: Bare `except:` (or `except Exception
   `.codex/hooks/scripts/hooks.py:194` · ✓ Repobility
5. **MEDIUM** `MINED111` — Bare except continues silently: Bare `except:` (or `except Exception
   `.claude/hooks/scripts/hooks.py:298` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/f3ffbfa1-6fa6-4fe1-aa03-f6299d72308b/_
Megaproject â high spam risk
Could not determine 'shanraisshan/claude-code-best-practice' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.