Skip to content

Add semantic linter with LLM-powered code analysis#24

Open
planeyang wants to merge 1 commit intomasterfrom
planeyang/lions-code-linter
Open

Add semantic linter with LLM-powered code analysis#24
planeyang wants to merge 1 commit intomasterfrom
planeyang/lions-code-linter

Conversation

@planeyang
Copy link
Copy Markdown
Collaborator

Summary

  • Implements lions lint CLI with three semantic checks: intent alignment, architectural drift, and silent contract detection
  • Adds LLM abstraction supporting both Anthropic Claude and Google Gemini with model routing
  • Outputs in JSON, human-readable text, and SARIF 2.1.0 (GitHub Code Scanning compatible)
  • Includes v2 architecture design: natural language rules (YAML) with visitor/observer pattern, intelligent batching, and scope-aware traversal
  • Adds deep research doc comparing traditional linter internals (Ruff vs Pylint, ESLint vs oxlint)

Test plan

  • Run lions lint backend/src/lions/ with valid API keys to verify all three checks produce diagnostics
  • Verify --format json, --format text, --format sarif output formats
  • Verify --check intent runs only intent alignment check
  • Verify lions lint --init generates .lions/manifesto.txt
  • Review design docs for v2 architecture clarity

🤖 Generated with Claude Code

Implements three semantic checks: intent alignment (function name vs body),
architectural drift (code vs project manifesto), and silent contract
(cross-file implicit dependencies). Includes v2 architecture design for
natural language rules with visitor/observer pattern.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lions-codes Ready Ready Preview, Comment Mar 6, 2026 8:16pm

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.

1 participant