Plain-string error rules miss string.format and variables with text #161

Open
opened 2026-11-24 13:51:45 +01:00 by michael · 0 comments
Owner

Goal

The rules detect plain-string errors built by string.format, concatenation or variables, or the limit is documented.

Reason

The rules only see return nil, "literal". core/suppressor.lua returned string.format(...) and was found by hand in DAW/fragjan#157.

Scope

  • extend the rules for string.format and .. forms
  • or document the limit

Acceptance criteria

  • return nil, string.format(...) is reported
  • return nil, a .. b is reported
  • tests for each form

Refs DAW/fragjan#157

## Goal The rules detect plain-string errors built by `string.format`, concatenation or variables, or the limit is documented. ## Reason The rules only see `return nil, "literal"`. `core/suppressor.lua` returned `string.format(...)` and was found by hand in DAW/fragjan#157. ## Scope - extend the rules for `string.format` and `..` forms - or document the limit ## Acceptance criteria - [ ] `return nil, string.format(...)` is reported - [ ] `return nil, a .. b` is reported - [ ] tests for each form Refs DAW/fragjan#157
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#161
No description provided.