Skip to content

Fix CodeQL/AI code-quality findings (unused variables, cls naming) - #215

Merged
MichaIng merged 2 commits into
mainfrom
copilot/address-github-code-quality-findings
Jul 20, 2026
Merged

Fix CodeQL/AI code-quality findings (unused variables, cls naming)#215
MichaIng merged 2 commits into
mainfrom
copilot/address-github-code-quality-findings

Conversation

Copilot AI commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Resolved 4 open findings surfaced by the code-quality/findings API (CodeQL + AI analysis).

py/not-named-cls

  • MotionEyeClient.is_file_type_image and is_file_type_movie are @classmethods but named their first parameter self. Renamed to cls per PEP8, including the internal call site.

py/unused-local-variable

  • test_cannot_connect defined a login_handler coroutine that was never passed to a server or otherwise used (the test connects to a bare closed socket). Removed the dead code.

py/unused-global-variable

  • tests/test_client.py declared a module-level _LOGGER that was never referenced. Removed it along with the now-unused logging import.

No functional or behavioral changes — all fixes are naming/dead-code cleanup.

@MichaIng MichaIng added the enhancement New feature or request label Jul 19, 2026
@MichaIng
MichaIng marked this pull request as ready for review July 19, 2026 19:19
Comment thread tests/test_client.py Outdated
@MichaIng
MichaIng merged commit 489b249 into main Jul 20, 2026
15 checks passed
@MichaIng
MichaIng deleted the copilot/address-github-code-quality-findings branch July 20, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

2 participants