Skip to content

[PLUGINS] Add metadata lint rules for missing field help text and ambiguous categories#717

Closed
Pcmhacker-piro wants to merge 6 commits into
utksh1:mainfrom
Pcmhacker-piro:plugin-metadata-lint
Closed

[PLUGINS] Add metadata lint rules for missing field help text and ambiguous categories#717
Pcmhacker-piro wants to merge 6 commits into
utksh1:mainfrom
Pcmhacker-piro:plugin-metadata-lint

Conversation

@Pcmhacker-piro

@Pcmhacker-piro Pcmhacker-piro commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Closing in favor of the clean PR #789 which contains only the plugin metadata lint changes (no unrelated AppShell/e2e commits).

OpenCode Agent added 3 commits June 9, 2026 10:44
…ecycle

- Add workflow.spec.ts with mocked API routes for GET/POST/DELETE /workflows
- Cover creation via CreateSheet, manual run with queued task display,
  and delete with grid removal confirmation
- Include full lifecycle scenario combining create, run, and delete
- Set up API key in localStorage before navigation to bypass auth gate

Fixes utksh1#563
…sed sidebar sync

- Remove 100ms polling interval from AppShell that was polling
  localStorage to detect sidebar state changes
- Sidebar now dispatches a 'sidebar-state-changed' CustomEvent on
  window whenever isExpanded changes
- AppShell listens for the CustomEvent instead of polling
- Preserves localStorage persistence for cross-tab scenarios
- No external dependencies or context providers needed
…guous categories

- Add VALID_CATEGORIES constant with all 12 recognized plugin categories
- Add _check_category() validator that rejects unknown categories
- Add help text lint check in _check_fields() to flag fields without
  user-facing description
- Update valid test fixture to include help text on fields
- Add comprehensive tests for both new lint rules
- Document the new lint rules in PLUGINS.md under Plugin Validation

Fixes utksh1#551
@Pcmhacker-piro

Copy link
Copy Markdown
Contributor Author

heyy @utksh1
i fixed the issues so pls check it

@utksh1 utksh1 added level:advanced 55 pts difficulty label for advanced contributor PRs type:testing Testing work category bonus label type:devops DevOps or infrastructure work category bonus label area:plugins Scanner plugin metadata, schemas, or plugin runtime work area:ci CI, tooling, or automation work labels Jun 9, 2026

@utksh1 utksh1 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs changes before merge. The formatting-hygiene check is failing and the PR is stacked with unrelated workflow/sidebar/plugin changes. Please rebase on main, split the metadata lint work into a focused PR, and make the new lint rules pass in CI.

OpenCode Agent and others added 3 commits June 10, 2026 14:19
test_valid_categories_accepted creates multiple plugin directories
under the same tmp_path in a loop, causing FileExistsError without
exist_ok=True.
@Pcmhacker-piro

Copy link
Copy Markdown
Contributor Author

hey @utksh1
i fixed the issue so pls check it

@Pcmhacker-piro

Copy link
Copy Markdown
Contributor Author

heyy @utksh1
i fixed the issue so pls check it

@utksh1 utksh1 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed the latest update. This is still not focused enough to merge.

The PR still includes unrelated AppShell/Sidebar frontend changes alongside plugin-validator lint work. Please split those out and keep this PR limited to plugin metadata lint rules, fixture updates, and validator tests. Once the frontend files are removed and the validator-only diff stays green, I can re-review.

Pcmhacker-piro added a commit to Pcmhacker-piro/SecuScan that referenced this pull request Jun 12, 2026
Add quality gates for plugin metadata to help contributors write
consistent, user-friendly plugin definitions.

- VALID_CATEGORIES set + _check_category() validation
- Help text lint check (warning-level, non-blocking)
- warnings list on ValidationResult for incremental compliance
- Cross-owner BOLA regression tests

Closes utksh1#551, Closes utksh1#717
Pcmhacker-piro added a commit to Pcmhacker-piro/SecuScan that referenced this pull request Jun 12, 2026
Add quality gates for plugin metadata to help contributors write
consistent, user-friendly plugin definitions.

- VALID_CATEGORIES set + _check_category() validation
- Help text lint check (warning-level, non-blocking)
- warnings list on ValidationResult for incremental compliance
- Cross-owner BOLA regression tests

Closes utksh1#551, Closes utksh1#717
utksh1 pushed a commit that referenced this pull request Jun 12, 2026
* feat(plugins): add metadata lint rules

Add quality gates for plugin metadata to help contributors write
consistent, user-friendly plugin definitions.

- VALID_CATEGORIES set + _check_category() validation
- Help text lint check (warning-level, non-blocking)
- warnings list on ValidationResult for incremental compliance
- Cross-owner BOLA regression tests

Closes #551, Closes #717

* feat(plugins): add metadata lint rules

Add quality gates for plugin metadata to help contributors write
consistent, user-friendly plugin definitions.

- VALID_CATEGORIES set + _check_category() validation
- Help text lint check (warning-level, non-blocking)
- warnings list on ValidationResult for incremental compliance
- Cross-owner BOLA regression tests

Closes #551, Closes #717
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, tooling, or automation work area:plugins Scanner plugin metadata, schemas, or plugin runtime work level:advanced 55 pts difficulty label for advanced contributor PRs type:devops DevOps or infrastructure work category bonus label type:testing Testing work category bonus label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants