feat(scanner): add per-plugin configuration system to PluginRegistry and Scanner - #91
Open
Senthemodder wants to merge 1 commit into
Open
Conversation
Contributor
|
Please fix lint failures |
Author
|
Sorry i didnt cook, gonna try and fix this 😢
…On Mon, Sep 7, 2026 at 5:29 PM Kami.codes ***@***.***> wrote:
*Kami-no-san* left a comment (VeridionLabs/veridion#91)
<#91 (comment)>
Please fix lint failures
—
Reply to this email directly, view it on GitHub
<#91?email_source=notifications&email_token=A4V6HMFGZIDERVFOQOEFOKD5N2EYPA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNJWHEZDKOJZG4Z2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5569259973>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4V6HMECW3JICJ4JL4UHJQ35N2EYPAVCNFSNUABGKJSXA33TNF2G64TZHMYTEOJSGU4TQMRUGM5US43TOVSTWNJTGUYTIMJRG44DRILWAI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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.
Fixes #21
Summary
Adds a per-plugin configuration system allowing severity overrides, pattern disabling, enabled/disabled toggling, and schema validation via
PluginRegistryandScanner.Changes
@veridion/scanner-typeswithPluginConfig,ConfigPropertySchema, andPluginConfigSchematypes; added optionalconfigSchematoPluginMetadata.PluginRegistry:register(plugin, config?): accepts optional configuration and validates againstplugin.metadata.configSchemaif defined.getPluginConfig(pluginId): retrieves current configuration.setPluginConfig(pluginId, config): updates plugin configuration with schema validation.unregister(pluginId): removes stored configuration on unregistration.Scanner.runPlugin:config.enabled === false.config.disabledPatterns.config.severityOverrideto findings.packages/scanner-core/src/plugin-registry.test.tsandpackages/scanner-core/src/scanner.test.tscovering config registration, retrieval, updating, schema validation, severity overrides, pattern suppression, and disabled skipping.Verification
pnpm --filter @veridion/scanner-core test: 14/14 tests passed (10 registry + 4 scanner).pnpm --filter @veridion/scanner-core typecheck: 0 errors.pnpm --filter @veridion/scanner-core lint: 0 warnings.