-
-
Notifications
You must be signed in to change notification settings - Fork 2
Parser: report warnings for skipped invalid magic rules #47
Copy link
Copy link
Open
Labels
cliCommand-line interface and toolsCommand-line interface and toolsenhancementNew feature or requestNew feature or requestparserMagic file parsing components and grammarMagic file parsing components and grammarpriority:normalStandard work itemStandard work item
Milestone
Metadata
Metadata
Assignees
Labels
cliCommand-line interface and toolsCommand-line interface and toolsenhancementNew feature or requestNew feature or requestparserMagic file parsing components and grammarMagic file parsing components and grammarpriority:normalStandard work itemStandard work item
Type
Fields
Give feedbackNo fields configured for Feature.
Summary
When loading magic files with invalid rules, the parser should report warnings about skipped rules instead of silently ignoring them.
Context
Per Core Flow 11 (Corrupted Magic File Handling), the parser should:
Current state: Invalid rules are silently skipped. No warnings are collected or reported to the user.
Acceptance Criteria
Files to Modify
src/parser/mod.rs- Return warnings alongside parsed rulessrc/parser/grammar.rs- Collect parse failures as warningssrc/main.rs- Display warnings to stderrsrc/lib.rs- Propagate warnings through library APIReferences