Fix CI workflow: Add tree-sitter CLI installation and fix linting errors
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
"""Analyze command for VibeGuard CLI."""
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
@@ -64,7 +63,7 @@ def analyze(
|
||||
file_issues = analyze_file(file_path, pattern_manager, config)
|
||||
issues.extend(file_issues)
|
||||
|
||||
console.print(f"\n[summary]Analysis Complete[/summary]")
|
||||
console.print("\n[summary]Analysis Complete[/summary]")
|
||||
console.print(f"Files scanned: {len(files)}")
|
||||
console.print(f"Issues found: {len(issues)}\n")
|
||||
|
||||
@@ -80,8 +79,6 @@ def analyze(
|
||||
console.print()
|
||||
|
||||
if output_json:
|
||||
import json
|
||||
|
||||
console.print_json(data={"issues": issues, "summary": severity_counts})
|
||||
elif output_html:
|
||||
generator = ReportGenerator()
|
||||
@@ -100,8 +97,6 @@ def analyze_file(
|
||||
path: Path, pattern_manager: PatternManager, config: Config
|
||||
) -> list[dict[str, Any]]:
|
||||
"""Analyze a single file for anti-patterns."""
|
||||
from vibeguard.analyzers.base import BaseAnalyzer
|
||||
|
||||
issues: list[dict[str, Any]] = []
|
||||
|
||||
analyzer = AnalyzerFactory.get_analyzer(path)
|
||||
|
||||
Reference in New Issue
Block a user