diff --git a/vibeguard/cli/commands/analyze.py b/vibeguard/cli/commands/analyze.py index 6e989da..fe2329e 100644 --- a/vibeguard/cli/commands/analyze.py +++ b/vibeguard/cli/commands/analyze.py @@ -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)