feat: Add rdjson output format for reviewdog integration#20
Merged
Conversation
…tHub Actions workflows.
- Update vectorlint.yml to pass LLM_PROVIDER secret to action - Allows explicit provider selection instead of defaulting to azure-openai - Fixes 'Missing required Azure OpenAI environment variables' error
- Update commands.ts to use cliOptions.prompts if provided - Fixes 'prompts path does not exist' error in GitHub Actions - Ensures action's explicit prompts path takes precedence
oshorefueled
requested changes
Dec 10, 2025
…verity type in tests
… evaluateFiles functions; update JSON version retrieval in JsonFormatter
oshorefueled
approved these changes
Dec 10, 2025
oshorefueled
requested changes
Dec 11, 2025
oshorefueled
approved these changes
Dec 11, 2025
oshorefueled
pushed a commit
that referenced
this pull request
Mar 2, 2026
* feat: Add support for RdJson output formats. * feat: Add core evaluation orchestrator, CLI commands, schemas, and GitHub Actions workflows. * Create vectorlint.ini * Clean up github action integration with vectorlint * update key to anthropic * chore: pass LLM_PROVIDER to vectorlint-action - Update vectorlint.yml to pass LLM_PROVIDER secret to action - Allows explicit provider selection instead of defaulting to azure-openai - Fixes 'Missing required Azure OpenAI environment variables' error * fix: prioritize CLI --prompts option over config file - Update commands.ts to use cliOptions.prompts if provided - Fixes 'prompts path does not exist' error in GitHub Actions - Ensures action's explicit prompts path takes precedence * update vectorlint.ini * Update env to include openai * Update vectorlint action to include perplexity * Add openai model and temperature to vectorlint action * Create test bad article to test vectorlint with reviewdog * Update command for output file * Update json formatter to support rdjson * Eslint clean up * Implement rdjson formatter and clean up integrations * fix micromatch ESM import * feat: add support for 'rdjson' output format and formatter in evaluation options * eslint fix * update vectorlint action * feat: implement silent mode for machine-readable output formats * Update vectorlint.ini to new version * Revert to old implementation * refactor: remove output file option and update types for consistency * fix: change logging from console.log to console.error for directive length * fix: change logging from console.log to console.error to resolve std issues * Revert llm provider logs and remove verbose parameter in vectorlint.yml * eslint fix * test: add RDJSON formatter tests for valid output * fix: update vectorlint.yml to remove evals path and add missing parameters for LLM providers * fix: update README.md for reviewdog integration * Update readme file * Delete vectorlint github action workflow * eslint fix * Delete vectorlint github action docs * Delete test bad article * Refactor output format handling to use enum and update schemas accordingly * Update JsonFormatter to retrieve version from package.json and fix severity type in tests * Refactor output format handling to use enum values in reportIssue and evaluateFiles functions; update JSON version retrieval in JsonFormatter * Rename eval to rule
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.
This PR adds support for the rdjson (Reviewdog Diagnostic JSON Format) output format to vectorlint. This enables seamless integration with reviewdog for automated code review comments and annotations in CI/CD pipelines.
Changes:
Added rdjson support to JsonFormatter.
Updated CLI to accept --output rdjson.
Added unit tests for rdjson output structure.
Usage:
npm run dev --output rdjson .
This output can be piped directly to reviewdog:
npm run dev --output rdjson . | reviewdog -f=rdjson -reporter=github-pr-review