Add DeepSeek diff lint workflow
Closed
LA
2mo ago+3191+3191+0123456789012345678901234567890123456789-7-7-0123456789
Summary:
- Add a pull_request_target DeepSeek diff lint workflow that runs one focused rule per matrix job.
- Add six Swift guidance rules for concurrency, blocking primitives, logging, SwiftUI state/layout, actor isolation, and @concurrent usage.
- Add a Python runner with JSON output parsing, GitHub annotations, diff-size limits, secret redaction, and mock-response test hooks.
- Add a CI guard test for clean, warning, failure, missing-key, and oversized-diff behavior.
Testing:
- python3 -m py_compile scripts/llm_diff_lint.py
- bash -n tests/test_ci_llm_diff_lint.sh
- git diff --cached --check
Notes:
- This PR does not store a DeepSeek key. Configure the DEEPSEEK_API_KEY repository secret before requiring the workflow.
- The workflow skips with a notice while the secret is missing.
Summary by CodeRabbit
- New Features
- Added an AI-powered PR linting workflow that runs multi-provider LLM checks, aggregates results, and posts comparison-ready PR comments; includes a CLI lint runner and a comment-aggregation tool.
- New Features
- Six Swift-focused lint rules covering actor isolation, blocking runtime, concurrency modernization, concurrency annotations, logging, and SwiftUI state/layout.
- Tests
- End-to-end integration test covering lint runs, secret redaction, diff-size limits, and multi-provider behavior.
- Documentation
- README and per-rule docs describing configuration, allowed exceptions, and reporting expectations.