feat(validator): per-file rule exclusions via fileExcludes#137
Draft
feat(validator): per-file rule exclusions via fileExcludes#137
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Bundle ReportChanges will increase total bundle size by 52.37kB (5.06%) ⬆️
Affected Assets, Files, and Routes:view changes for bundle: promptscript-cliAssets Changed:
|
New `fileExcludes` option in `ValidatorConfig` and `promptscript.yaml`
allows disabling specific rules for files matching glob patterns.
Uses picomatch for glob matching.
Example:
validation:
fileExcludes:
- pattern: "skills/**/SKILL.md"
rules: [PS011]
6ac2783 to
3c663bc
Compare
Owner
Author
|
Not needed so far |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fileExcludesconfig option allows disabling specific validation rules for files matching glob patternspicomatchfor glob matchingpromptscript.yaml-> compiler -> validator pipelineExample
Changes
ValidatorConfig.fileExcludes(validator types)PromptScriptConfig.validation.fileExcludes(core config types)Validator.validate()computes per-file excluded rules before the rule loopschema/config.json)config.mdreference +security.mdguidance on false positivesTest plan