fix(reporter): show project-level check count in summary #17
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#17
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
When running a pack with only target_type: project rules, the summary
shows 0 file(s) checked which is misleading -- files were checked for
existence and content, just not via per-file scan.
Current output:
[SUMMARY] 0 file(s) checked, 0 warning(s), 0 error(s)
Solution
Track project-level checks separately and include in summary:
[SUMMARY] 0 file(s), 13 check(s), 0 warning(s), 0 error(s)
Or when only project checks:
[SUMMARY] 13 check(s), 0 warning(s), 0 error(s)
Affected Files
Related: core/reporter.lua uses string.format with %d for file_count without nil check. Once runner collects errors instead of fail-fast (#43), file_count could be 0 or nil in edge cases. Defensive check needed before string.format call.