test(plugins): add duplicate metadata validation#177
Open
HitanshiThakar wants to merge 2 commits into
Open
Conversation
🛡️ AI Slop Guardian Report
Verdict: Content shows 30% AI probability based on perplexity, style patterns, and deviation from repo baseline. Detection detailsPerplexity Signals:
Burstiness Signals:
Pattern Signals:Embedding Signals:
DNA Signals:
GhostAuthor Signals:
SemanticCoherence Signals:
Override with |
Author
|
1 failing check related to SecuScan CI seems unrelated to the plugin metadata changes in this PR. |
utksh1
requested changes
May 22, 2026
Owner
utksh1
left a comment
There was a problem hiding this comment.
Thanks! Since main now normalizes parser line endings for checksum computation (see recent merges), the updated checksum here likely needs a refresh.
Please:
- Rebase on latest main
- Re-run
python scripts/refresh_plugin_checksum.py --plugin waf_detector - Update checksum accordingly and ensure CI passes
The uniqueness test looks good once checksum is correct.
Author
|
Done, All checks have passed. |
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.
Description
Added a metadata integrity test to detect duplicate plugin IDs and duplicate human-facing plugin names across all plugin metadata files.
The test scans all metadata.json files in the plugins directory and provides clear failure messages listing duplicate entries when found.
Also fixed an existing duplicate plugin display name and refreshed the plugin checksum after updating metadata.
Related Issues
Closes #116
Type of Change
How Has This Been Tested?
Ran the backend plugin integrity test locally:
python -m pytest testing/backend/unit/test_plugin_integrity.py -v
Test result:
3 tests passed successfully
Checklist