← Back to scan
File as GitHub Issue repo: victordomingos/optimize-images

Push this scan report to victordomingos/optimize-images

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

`self.wait_for_write_finish` used but never assigned in __init__

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
CRIT MINED107 [MINED107] Missing import: `stat` used but not imported: The file uses `stat.something(..… optimize_images/img_dynamic_quality.py:36
CRIT MINED107 [MINED107] Missing import: `tempfile` used but not imported: The file uses `tempfile.some… optimize_images/img_info.py:50
HIGH MINED108 [MINED108] `self._wait_for_write_finish` used but never assigned in __init__: Method `on_… optimize_images/api.py:320
HIGH MINED108 [MINED108] `self.line_width` used but never assigned in __init__: Method `on_created` of … optimize_images/watch.py:72
HIGH MINED108 [MINED108] `self.wait_for_write_finish` used but never assigned in __init__: Method `on_c… optimize_images/watch.py:52
HIGH SEC103 [SEC103] LDAP injection — non-constant search filter: User input concatenated into an LDA… setup.py:44
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… optimize_images/reporting.py:22
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … optimize_images/img_optimize_jpg.py:73
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … optimize_images/img_info.py:45
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … optimize_images/img_dynamic_quality.py:50
HIGH MINED006 [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and Syste… optimize_images/watch.py:96
HIGH MINED006 [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and Syste… optimize_images/__main__.py:133
HIGH COMP001 [COMP001] High cognitive complexity: Function `optimize_batch` has cognitive complexity 3… optimize_images/__main__.py:64
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… optimize_images/img_optimize_webp.py:50
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… optimize_images/constants.py:14
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… optimize_images/img_optimize_jpg.py:39
MED COMP001 [COMP001] High cognitive complexity: Function `search_images` has cognitive complexity 25… optimize_images/file_utils.py:8
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED CORE_NO_CI No CI/CD configuration found
LOW COMP001 [COMP001] High cognitive complexity: Function `do_reduce_colors` has cognitive complexity… optimize_images/img_aux_processing.py:81
LOW AIC003 Duplicated implementation block across source files optimize_images/data_structures.py:32
LOW AIC003 Duplicated implementation block across source files optimize_images/api.py:183
LOW AUC005 [AUC005] No authorization-focused tests detected: No test files with common authorization…
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… optimize_images/reporting.py:23
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… optimize_images/platforms.py:70
Reset to top 5 25 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `victordomingos/optimize-images`

**Score: 90/100 (B)**  ·  29 findings  ·  scanned 2026-06-05 22:59 UTC  ·  2,741 LOC

| Severity | Count |
|---|---|
| CRITICAL | 2 |
| HIGH | 11 |
| MEDIUM | 6 |
| LOW | 4 |

📊 [Full filterable report](https://repobility.com/scan/33f84364-e46a-49a2-b7fe-65ee7a9c1173/)  ·  ![scorecard](https://repobility.com/scan/33f84364-e46a-49a2-b7fe-65ee7a9c1173/report.png?v=1780700357-s2)

### Top findings

1. **CRITICAL** `MINED107` — Missing import: `stat` used but not imported
   `optimize_images/img_dynamic_quality.py:36` · ✓ Repobility
2. **CRITICAL** `MINED107` — Missing import: `tempfile` used but not imported
   `optimize_images/img_info.py:50` · ✓ Repobility
3. **HIGH** `MINED108` — `self._wait_for_write_finish` used but never assigned in __init__
   `optimize_images/api.py:320` · ✓ Repobility
4. **HIGH** `MINED108` — `self.line_width` used but never assigned in __init__
   `optimize_images/watch.py:72` · ✓ Repobility
5. **HIGH** `MINED108` — `self.wait_for_write_finish` used but never assigned in __init__
   `optimize_images/watch.py:52` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/33f84364-e46a-49a2-b7fe-65ee7a9c1173/_
Megaproject â high spam risk
Could not determine 'victordomingos/optimize-images' 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.