You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: address gemini-code-assist 11th review on PR #1
All 3 findings legitimate, all applied:
- collect_github.collect: add `isinstance(entry, dict)` guard before
`entry.get("repo")`. A null or scalar YAML entry (`- foo`) used to
AttributeError out of the whole track; now it's logged and skipped.
Existing malformed-entry test extended with null and string cases.
[MEDIUM]
- collect_rss.collect: same isinstance guard for `feed`. Existing
malformed-feed test extended with a `null` entry. [MEDIUM]
- score._compiled_patterns: wrap the per-keyword regex compile in
`functools.lru_cache` keyed on the keyword tuple. score_item is
called once per item (hundreds per track per run); without caching
we'd recompile the same primary/secondary patterns every call.
Switched score_item's keyword extraction to tuples so they're
hashable for the cache. No behaviour change — same word-bounded
semantics, just compiled once per distinct keyword set. [MEDIUM]
0 commit comments