Skip to content

feat: Add new add plugin claude command#2636

Open
marschattha wants to merge 1 commit intomainfrom
ma/add_plugin_claude_command
Open

feat: Add new add plugin claude command#2636
marschattha wants to merge 1 commit intomainfrom
ma/add_plugin_claude_command

Conversation

@marschattha
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings January 19, 2026 20:57
@github-actions
Copy link
Copy Markdown
Contributor

No issue mentions found. Please mention an issue in the pull request description.

Use GitHub automation to close the issue when a PR is merged

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a comprehensive Claude command file for adding new linter plugins to the Qlty codebase. The command provides step-by-step instructions covering research, plugin structure creation, output format selection (SARIF, custom parser, or regex), parser implementation, testing, and reference examples.

Changes:

  • Added .claude/commands/add-plugin.md with detailed instructions for adding linter/formatter plugins
  • Includes complete templates for plugin.toml, README.md, test files, and fixtures
  • Provides examples for runtime-based plugins (npm, pip, gem, Go) and binary releases
  • Documents three output parsing options: SARIF, custom JSON parser, and regex parser
  • Includes detailed Rust code templates for custom parsers and integration points

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

flake8 (`file:line:col: CODE message`):

```toml
output_regex = "((?P<path>.*):(?P<line>-?\\d+):(?P<col>-?\\d+): (?P<code>\\S+) (?P<message>.+))\n"
Copy link

Copilot AI Jan 19, 2026

Choose a reason for hiding this comment

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

The output_regex pattern ends with \n (escaped newline), but this may not be necessary or correct for all linters. The flake8 example in the actual codebase shows this pattern, but other regex-based parsers (like yamllint) don't include the trailing newline. The documentation should clarify when to include the newline in the regex pattern.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants