refactor(runner): return wrapper table instead of 5 values #94

Closed
opened 2026-05-27 18:13:39 +02:00 by michael · 0 comments
Owner

Goal

Refactor runner.run to return a single wrapper table instead of 5
separate return values. Aligns with DAW nil, err standard.

Current signature

return results, file_count, suppressions, file_list, nil
return nil, nil, nil, nil, err

Target signature

return { results = ..., file_count = ..., suppressions = ..., file_list = ... }, nil
return nil, err

Affected files

  • core/runner.lua
  • core/commands/code.lua
  • core/commands/article.lua
  • core/reporter.lua (if it calls runner directly)

Acceptance criteria

  • runner.run returns wrapper table, nil on success
  • runner.run returns nil, err on failure
  • all callers updated
  • fragjan code . runs clean after refactor
## Goal Refactor runner.run to return a single wrapper table instead of 5 separate return values. Aligns with DAW nil, err standard. ## Current signature return results, file_count, suppressions, file_list, nil return nil, nil, nil, nil, err ## Target signature return { results = ..., file_count = ..., suppressions = ..., file_list = ... }, nil return nil, err ## Affected files - core/runner.lua - core/commands/code.lua - core/commands/article.lua - core/reporter.lua (if it calls runner directly) ## Acceptance criteria - [ ] runner.run returns wrapper table, nil on success - [ ] runner.run returns nil, err on failure - [ ] all callers updated - [ ] fragjan code . runs clean after refactor
michael added this to the Basic Version milestone 2026-05-30 16:04:44 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/fragjan#94
No description provided.