feature: suppress:silent at file level #130

Open
opened 2026-06-26 10:34:28 +02:00 by michael · 0 comments
Owner

Goal

Extend the existing suppress mechanism from line level to file level.
A file marked with suppress:silent skips all rule checks for that file
without producing warnings.

Background

Current suppress works per line. For deliberately large files
(e.g. mainjan core, which must be self-contained by design),
suppressing every line separately is impractical and noisy.

Use case

mainjan/init.lua is intentionally large -- the minimal core cannot
be split across files at runtime. fragjan should respect this decision
without flagging the file on every run.

Proposed syntax

File-level marker at the top of the file:

-- fragjan:suppress:file reason="mainjan core -- intentionally large, self-contained by design"

Or in a sidecar file (keeps source clean):

lib/daw/mainjan/init.lua.fragjan-suppress

Open questions

  • Inline marker vs. sidecar file -- which fits better with DAW philosophy?
  • Should file-level suppress apply to all rules or only specific rule IDs?
  • Should suppressed files appear in the report as explicitly skipped?

Relation

Extends existing line-level suppress mechanism.
Does not change behavior for unsuppressed files.

## Goal Extend the existing suppress mechanism from line level to file level. A file marked with suppress:silent skips all rule checks for that file without producing warnings. ## Background Current suppress works per line. For deliberately large files (e.g. mainjan core, which must be self-contained by design), suppressing every line separately is impractical and noisy. ## Use case mainjan/init.lua is intentionally large -- the minimal core cannot be split across files at runtime. fragjan should respect this decision without flagging the file on every run. ## Proposed syntax File-level marker at the top of the file: ```lua -- fragjan:suppress:file reason="mainjan core -- intentionally large, self-contained by design" ``` Or in a sidecar file (keeps source clean): ``` lib/daw/mainjan/init.lua.fragjan-suppress ``` ## Open questions - Inline marker vs. sidecar file -- which fits better with DAW philosophy? - Should file-level suppress apply to all rules or only specific rule IDs? - Should suppressed files appear in the report as explicitly skipped? ## Relation Extends existing line-level suppress mechanism. Does not change behavior for unsuppressed files.
michael added this to the Basic Version milestone 2026-06-26 11:38:02 +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#130
No description provided.