Skip to content

feat: Add rdjson output format for reviewdog integration#20

Merged
oshorefueled merged 43 commits into
mainfrom
ft/reviewdog
Dec 11, 2025
Merged

feat: Add rdjson output format for reviewdog integration#20
oshorefueled merged 43 commits into
mainfrom
ft/reviewdog

Conversation

@ayo6706

@ayo6706 ayo6706 commented Nov 26, 2025

Copy link
Copy Markdown
Collaborator

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

- 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
@ayo6706 ayo6706 changed the title feat: Add rdjson output format for reviewdog integration feat: automated PR content reviews via reviewdog Dec 9, 2025
@ayo6706 ayo6706 changed the title feat: automated PR content reviews via reviewdog feat: Add rdjson output format for reviewdog integration Dec 10, 2025
Comment thread src/cli/types.ts Outdated
Comment thread src/output/json-formatter.ts Outdated
Comment thread src/output/rdjson-formatter.ts Outdated
Comment thread src/output/rdjson-formatter.ts Outdated
Comment thread src/schemas/cli-schemas.ts Outdated
Comment thread src/output/json-formatter.ts
@oshorefueled
oshorefueled merged commit 324ab1d into main Dec 11, 2025
2 checks passed
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
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