Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/vectorlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: VectorLint

on:
pull_request:
paths:
- '**/*.md'

permissions:
contents: read
pull-requests: write
checks: write

concurrency:
group: vectorlint-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run VectorLint
uses: TRocket-Labs/vectorlint-action@v1
with:
llm_provider: ${{ secrets.LLM_PROVIDER }}
# OpenAI
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
openai_model: ${{ secrets.OPENAI_MODEL }}
openai_temperature: ${{ secrets.OPENAI_TEMPERATURE }}
# Reviewdog options
reporter: github-pr-check
filter_mode: added
fail_on_error: false

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ dist/
.idea/
coverage/
*.tsbuildinfo
vectorlint.ini
.kiro/
# .agent/
/.idea
Expand Down
6 changes: 6 additions & 0 deletions vectorlint.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
RulesPath=.github/rules
Concurrency=4
DefaultSeverity=warning

[**/*.md]
RunRules=TinyRocket
Comment on lines +1 to +6
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Use .vectorlint.ini (hidden file) instead of vectorlint.ini.

As noted by oshorefueled in the PR comments, the configuration file should be named .vectorlint.ini to follow the convention of hidden configuration files in Unix-like systems.

🤖 Prompt for AI Agents
In vectorlint.ini around lines 1 to 6, the configuration filename should be a
hidden file per project convention; rename vectorlint.ini to .vectorlint.ini and
update any references (CI, docs, tooling) that load the file so they point to
.vectorlint.ini to ensure the linter picks up the config.