feat(rules): require inventory -- collect and report dependencies per file #12

Open
opened 2026-05-19 12:44:00 +02:00 by michael · 0 comments
Owner

Idea

Add a rule (or separate output mode) that collects all require() calls
per file and reports them as informational output -- not as warnings.

Useful for:

  • Dependency inventory per file
  • Detecting external library usage (socket, lfs, etc.)
  • Spotting old require patterns (modules.X, daw.lua.*)

Options

  1. severity: info in existing rule format -- collect all require() calls,
    output as [INFO] per file with list of dependencies
  2. Separate --inventory flag for fragjan that runs require-scan and
    outputs a summary instead of per-line warnings

Notes

This is different from warn/error rules -- it is additive information,
not a violation. Needs thought on output format before implementing.
Possibly a new primitive: daw.fragjan.check.inventory

## Idea Add a rule (or separate output mode) that collects all require() calls per file and reports them as informational output -- not as warnings. Useful for: - Dependency inventory per file - Detecting external library usage (socket, lfs, etc.) - Spotting old require patterns (modules.X, daw.lua.*) ## Options 1. severity: info in existing rule format -- collect all require() calls, output as [INFO] per file with list of dependencies 2. Separate --inventory flag for fragjan that runs require-scan and outputs a summary instead of per-line warnings ## Notes This is different from warn/error rules -- it is additive information, not a violation. Needs thought on output format before implementing. Possibly a new primitive: daw.fragjan.check.inventory
michael added this to the Basic Version milestone 2026-05-30 16:08:29 +02:00
Sign in to join this conversation.
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#12
No description provided.