Skip to content

[Chore]: Remove luacheck:ignore 561 suppressions by fixing loop patterns #7

@assagman

Description

@assagman

Description

Eliminate all -- luacheck: ignore 561 comments by refactoring the underlying code patterns.

Warning 561 ("loop can be executed at most once") indicates loops with unconditional returns/breaks. These should be refactored to cleaner patterns (direct conditionals, early returns, etc.) rather than suppressed.

Scope / Affected Files

File Line Function
lua/ghost/test.lua 63 on_update
lua/ghost/status.lua 370 build_status_content
lua/ghost/receiver.lua 90 process_session_update
lua/ghost/response.lua 110 flush_pending
lua/ghost/response.lua 683 handle_update
lua/ghost/health.lua 31 check
lua/ghost/context.lua 149 capture

Total: 7 suppressions across 6 files

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreInternal cleanup, maintenance, or refactoringrefactor

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions