runner: unresolved placeholders in rule messages are printed literally #159
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type/architecture
type
bug
type
config
type
deployment
type
docs
type/documentation
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
type/task
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/fragjan#159
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
expand_messageincore/runner/file.luaandcore/runner/project.lualeaves a placeholder as literal text when no value exists for it
(
{key}stays{key}). The file runner sets{line}and{value}only ifthe result carries
metrics.matches. A rule that reports a missing thing(no match) and uses
{line}in its message therefore prints the raw placeholder:The project runner knows only
{dir}.Scope
surrounding separator (
init.lua:{line}becomesinit.lua), or report therule as faulty so the author notices
{dir},{line},{value}, ...)Acceptance criteria
{line}does not print{line}make testpasses (Lua 5.4 and 5.1)Technical notes
fragjan codeon a module whoseinit.lualacks aprovidesfieldexpand_message; a shared helper would remove the duplicate