Generated by: prefact v0.1.30 Generated on: 2026-03-31T09:35:08.191045 Total issues: 587 active, 0 completed
- benchmarks/benchmark_evolution.py:63 - Function 'save_current' missing return type (suggested: -> None)
- benchmarks/benchmark_evolution.py:69 - Function 'run_benchmark' missing return type (suggested: -> None)
- benchmarks/benchmark_evolution.py:96 - String concatenation can be converted to f-string
- benchmarks/benchmark_evolution.py:81 - Magic number: 120 - use named constant
- benchmarks/benchmark_evolution.py:110 - Magic number: 22 - use named constant
- benchmarks/benchmark_evolution.py:135 - module execution block
- benchmarks/benchmark_format_quality.py:32 - Magic number: 70 - use named constant
- benchmarks/benchmark_format_quality.py:35 - Magic number: 70 - use named constant
- benchmarks/benchmark_format_quality.py:141 - module execution block
- badges/server.py:17 - Function 'index' missing return type (suggested: -> Any)
- badges/server.py:22 - Function 'generate_badges' missing return type (suggested: -> Any)
- badges/server.py:56 - Function 'get_badges' missing return type (suggested: -> Any)
- badges/server.py:6 - Unused request imported from flask
- badges/server.py:8 - Unused import json
- badges/server.py:9 - Unused import os
- badges/server.py:110 - Magic number: 5000 - use named constant
- badges/server.py:42 - Magic number: 500 - use named constant
- badges/server.py:48 - Magic number: 500 - use named constant
- badges/server.py:109 - module execution block
- benchmarks/benchmark_performance.py:199 - Function 'print_comparison' missing return type (suggested: -> None)
- benchmarks/benchmark_performance.py:221 - Function 'main' missing return type (suggested: -> None)
- benchmarks/benchmark_performance.py:201 - String concatenation can be converted to f-string
- benchmarks/benchmark_performance.py:218 - String concatenation can be converted to f-string
- benchmarks/benchmark_performance.py:300 - String concatenation can be converted to f-string
- benchmarks/benchmark_performance.py:236 - Magic number: 50 - use named constant
- benchmarks/benchmark_performance.py:57 - Magic number: 50 - use named constant
- benchmarks/benchmark_performance.py:58 - Magic number: 20 - use named constant
- benchmarks/benchmark_performance.py:94 - module execution block
- benchmarks/benchmark_performance.py:221 - standalone main function
- benchmarks/benchmark_performance.py:305 - module execution block
- benchmarks/format_evaluator.py:12 - Relative import (level=1): '.benchmark_constants'
- benchmarks/format_evaluator.py:132 - String concatenation can be converted to f-string
- benchmarks/format_evaluator.py:10 - Unused List imported from typing
- benchmarks/format_evaluator.py:10 - Unused import: 'List'
- code2llm/init.py:15 - Relative import (level=1): '.core.config'
- code2llm/init.py:16 - Relative import (level=1): '.core.models'
- code2llm/init.py:41 - Relative import (level=1): '.core.analyzer'
- code2llm/main.py:3 - Relative import (level=1): '.cli'
- code2llm/main.py:5 - module execution block
- benchmarks/reporting.py:12 - Relative import (level=1): '.benchmark_constants'
- benchmarks/reporting.py:13 - Relative import (level=1): '.format_evaluator'
- benchmarks/reporting.py:18 - String concatenation can be converted to f-string
- benchmarks/reporting.py:107 - String concatenation can be converted to f-string
- benchmarks/reporting.py:48 - String concatenation can be converted to f-string
- benchmarks/reporting.py:10 - Unused List imported from typing
- benchmarks/reporting.py:10 - Unused import: 'List'
- benchmarks/reporting.py:20 - Magic number: 70 - use named constant
- benchmarks/reporting.py:27 - Magic number: 75 - use named constant
- benchmarks/reporting.py:109 - Magic number: 70 - use named constant
- benchmarks/test_performance.py:44 - Function 'large_project' missing return type (suggested: -> None)
- benchmarks/test_performance.py:100 - Function 'test_fast_mode_performance' missing return type (suggested: -> None)
- benchmarks/test_performance.py:127 - Function 'test_caching_performance' missing return type (suggested: -> None)
- benchmarks/test_performance.py:7 - Unused Dict imported from typing
- benchmarks/test_performance.py:7 - Unused List imported from typing
- benchmarks/test_performance.py:13 - Unused Config imported from code2llm
- benchmarks/test_performance.py:258 - module execution block
- code2llm/analysis/cfg.py:57 - Function 'connect' missing return type (suggested: -> None)
- code2llm/analysis/cfg.py:69 - Function 'visit_FunctionDef' missing return type (suggested: -> None)
- code2llm/analysis/cfg.py:106 - Function 'visit_AsyncFunctionDef' missing return type (suggested: -> None)
- code2llm/analysis/cfg.py:142 - String concatenation can be converted to f-string
- code2llm/analysis/cfg.py:4 - Unused defaultdict imported from collections
- code2llm/analysis/cfg.py:4 - Unused import: 'defaultdict'
- code2llm/analysis/cfg.py:248 - Magic number: 80 - use named constant
- code2llm/analysis/cfg.py:229 - Magic number: 50 - use named constant
- code2llm/analysis/cfg.py:273 - Magic number: 50 - use named constant
- code2llm/analysis/call_graph.py:64 - Function 'visit_Import' missing return type (suggested: -> None)
- code2llm/analysis/call_graph.py:71 - Function 'visit_ImportFrom' missing return type (suggested: -> None)
- code2llm/analysis/call_graph.py:80 - Function 'visit_ClassDef' missing return type (suggested: -> None)
- code2llm/analysis/call_graph.py:4 - Unused Set imported from typing
- code2llm/analysis/call_graph.py:4 - Unused List imported from typing
- code2llm/analysis/call_graph.py:4 - Unused Dict imported from typing
- code2llm/analysis/call_graph.py:191 - Duplicate import: '_astroid' (first at line 36)
- code2llm/analysis/data_analysis.py:285 - String concatenation can be converted to f-string
- code2llm/analysis/data_analysis.py:284 - String concatenation can be converted to f-string
- code2llm/analysis/data_analysis.py:3 - Unused List imported from typing
- code2llm/analysis/data_analysis.py:3 - Unused import: 'List'
- code2llm/analysis/data_analysis.py:10 - Magic number: 15 - use named constant
- code2llm/analysis/data_analysis.py:67 - Magic number: 20 - use named constant
- code2llm/analysis/data_analysis.py:107 - Magic number in comparison: 20
- code2llm/analysis/pipeline_detector.py:21 - Relative import (level=1): '.side_effects'
- code2llm/analysis/pipeline_detector.py:22 - Relative import (level=1): '.type_inference'
- code2llm/analysis/pipeline_detector.py:484 - String concatenation can be converted to f-string
- code2llm/analysis/pipeline_detector.py:261 - String concatenation can be converted to f-string
- code2llm/analysis/pipeline_detector.py:20 - Unused AnalysisResult imported from code2llm.core.models
- code2llm/analysis/pipeline_detector.py:20 - Unused import: 'AnalysisResult'
- code2llm/analysis/pipeline_detector.py:28 - Magic number: 12 - use named constant
- code2llm/analysis/pipeline_detector.py:29 - Magic number: 15 - use named constant
- code2llm/analysis/pipeline_detector.py:130 - LLM-style docstring in detect
- code2llm/analysis/dfg.py:41 - Function 'visit_FunctionDef' missing return type (suggested: -> None)
- code2llm/analysis/dfg.py:54 - Function 'visit_Assign' missing return type (suggested: -> None)
- code2llm/analysis/dfg.py:97 - Function 'visit_AugAssign' missing return type (suggested: -> None)
- code2llm/analysis/dfg.py:8 - Unused FlowEdge imported from code2llm.core.models
- code2llm/analysis/dfg.py:8 - Unused import: 'FlowEdge'
- code2llm/analysis/side_effects.py:15 - Unused Set imported from typing
- code2llm/analysis/side_effects.py:15 - Unused import: 'Set'
- code2llm/analysis/smells.py:37 - String concatenation can be converted to f-string
- code2llm/analysis/smells.py:59 - String concatenation can be converted to f-string
- code2llm/analysis/smells.py:2 - Unused Dict imported from typing
- code2llm/analysis/smells.py:2 - Unused Any imported from typing
- code2llm/analysis/smells.py:2 - Unused import: 'Dict'
- code2llm/analysis/smells.py:36 - Magic number in comparison: 12
- code2llm/analysis/smells.py:58 - Magic number in comparison: 40
- code2llm/analysis/smells.py:36 - Magic number: 12 - use named constant
- code2llm/api.py:10 - Relative import (level=1): '.core.config'
- code2llm/api.py:11 - Relative import (level=1): '.core.models'
- code2llm/api.py:37 - Relative import (level=1): '.core.analyzer'
- code2llm/api.py:25 - LLM-style docstring in analyze
- code2llm/api.py:44 - LLM-style docstring in analyze_file
- code2llm/cli.py:10 - Relative import (level=1): '.cli_parser'
- code2llm/cli.py:11 - Relative import (level=1): '.cli_commands'
- code2llm/cli.py:18 - Relative import (level=1): '.cli_exports'
- code2llm/cli.py:34 - Function 'main' missing return type (suggested: -> Any)
- code2llm/cli.py:11 - Unused generate_llm_context imported from cli_commands
- code2llm/cli.py:18 - Unused _export_evolution imported from cli_exports
- code2llm/cli.py:18 - Unused _export_data_structures imported from cli_exports
- code2llm/cli.py:34 - standalone main function
- code2llm/cli.py:68 - module execution block
- code2llm/analysis/type_inference.py:67 - LLM-style docstring in enrich_function
- code2llm/cli_commands.py:8 - Relative import (level=1): '.cli_exports'
- code2llm/cli_commands.py:194 - Relative import (level=1): '.'
- code2llm/cli_commands.py:195 - Relative import (level=1): '.exporters'
- code2llm/cli_commands.py:179 - Function 'generate_llm_context' missing return type (suggested: -> int)
- code2llm/cli_commands.py:3 - Unused import argparse
- code2llm/cli_commands.py:33 - Duplicate import: 'argparse' (first at line 3)
- code2llm/cli_commands.py:181 - Duplicate import: 'argparse' (first at line 3)
- code2llm/cli_commands.py:193 - Duplicate import: 'Path' (first at line 5)
- code2llm/cli_commands.py:136 - Magic number: 50 - use named constant
- code2llm/cli_commands.py:163 - Magic number: 50 - use named constant
- code2llm/cli_analysis.py:17 - Relative import (level=1): '.core.large_repo'
- code2llm/cli_analysis.py:36 - Relative import (level=1): '.core.config'
- code2llm/cli_analysis.py:37 - Relative import (level=1): '.core.analyzer'
- code2llm/cli_analysis.py:298 - Function 'on_progress' missing return type (suggested: -> None)
- code2llm/cli_analysis.py:138 - String concatenation can be converted to f-string
- code2llm/cli_analysis.py:70 - String concatenation can be converted to f-string
- code2llm/cli_analysis.py:203 - String concatenation can be converted to f-string
- code2llm/cli_analysis.py:8 - Unused List imported from typing
- code2llm/cli_analysis.py:8 - Unused Optional imported from typing
- code2llm/cli_analysis.py:8 - Unused Tuple imported from typing
- code2llm/cli_analysis.py:60 - Duplicate import: 'Config' (first at line 36)
- code2llm/cli_analysis.py:191 - Duplicate import: 'ProjectAnalyzer' (first at line 37)
- code2llm/cli_analysis.py:192 - Duplicate import: 'Config' (first at line 36)
- code2llm/cli_exports/init.py:6 - Relative import (level=1): '.formats'
- code2llm/cli_exports/init.py:18 - Relative import (level=1): '.prompt'
- code2llm/cli_exports/init.py:22 - Relative import (level=1): '.code2logic'
- code2llm/cli_exports/code2logic.py:120 - Relative import (level=2): '..core.toon_size_manager'
- code2llm/cli_exports/orchestrator.py:7 - Relative import (level=1): '.formats'
- code2llm/cli_exports/orchestrator.py:18 - Relative import (level=1): '.code2logic'
- code2llm/cli_exports/orchestrator.py:19 - Relative import (level=1): '.prompt'
- code2llm/cli_exports/orchestrator.py:125 - String concatenation can be converted to f-string
- code2llm/cli_exports/formats.py:250 - Relative import (level=2): '..refactor.prompt_engine'
- code2llm/cli_exports/formats.py:151 - Relative import (level=2): '..exporters.validate_project'
- code2llm/cli_exports/formats.py:196 - Relative import (level=2): '..generators.mermaid'
- code2llm/cli_exports/formats.py:3 - Unused import os
- code2llm/cli_exports/formats.py:6 - Unused Optional imported from typing
- code2llm/cli_exports/formats.py:3 - Unused import: 'os'
- code2llm/cli_exports/prompt.py:155 - String concatenation can be converted to f-string
- code2llm/cli_exports/prompt.py:33 - String concatenation can be converted to f-string
- code2llm/cli_exports/prompt.py:58 - String concatenation can be converted to f-string
- code2llm/cli_exports/prompt.py:3 - Unused import sys
- code2llm/cli_exports/prompt.py:3 - Unused import: 'sys'
- code2llm/cli_parser.py:5 - Relative import (level=1): '.core.config'
- code2llm/cli_parser.py:209 - Magic number: 50 - use named constant
- code2llm/core/init.py:3 - Relative import (level=1): '.config'
- code2llm/core/init.py:4 - Relative import (level=1): '.models'
- code2llm/core/init.py:32 - Relative import (level=1): '.analyzer'
- code2llm/core/init.py:3 - Unused PerformanceConfig imported from config
- code2llm/core/init.py:3 - Unused FilterConfig imported from config
- code2llm/core/init.py:4 - Unused FlowNode imported from models
- code2llm/core/analyzer.py:9 - Relative import (level=1): '.config'
- code2llm/core/analyzer.py:10 - Relative import (level=1): '.models'
- code2llm/core/analyzer.py:13 - Relative import (level=1): '.file_cache'
- code2llm/core/analyzer.py:353 - Duplicate import: file_cache.FileCache
- code2llm/core/analyzer.py:354 - Duplicate import: file_filter.FastFileFilter
- code2llm/core/analyzer.py:355 - Duplicate import: file_analyzer.FileAnalyzer
- code2llm/core/analyzer.py:137 - String concatenation can be converted to f-string
- code2llm/core/analyzer.py:9 - Unused LANGUAGE_EXTENSIONS imported from config
- code2llm/core/analyzer.py:10 - Unused FlowEdge imported from models
- code2llm/core/analyzer.py:10 - Unused FlowNode imported from models
- code2llm/core/analyzer.py:278 - LLM-style docstring in analyze_files
- code2llm/core/config.py:27 - Magic number: 10000 - use named constant
- code2llm/core/config.py:28 - Magic number: 50000 - use named constant
- code2llm/core/config.py:66 - Magic number: 50 - use named constant
- code2llm/core/file_analyzer.py:10 - Relative import (level=1): '.config'
- code2llm/core/file_analyzer.py:11 - Relative import (level=1): '.models'
- code2llm/core/file_analyzer.py:17 - Relative import (level=1): '.file_filter'
- code2llm/core/file_analyzer.py:208 - String concatenation can be converted to f-string
- code2llm/core/file_analyzer.py:313 - String concatenation can be converted to f-string
- code2llm/core/file_analyzer.py:348 - String concatenation can be converted to f-string
- code2llm/core/file_analyzer.py:4 - Unused import re
- code2llm/core/file_analyzer.py:10 - Unused LANGUAGE_EXTENSIONS imported from config
- code2llm/core/file_analyzer.py:11 - Unused AnalysisResult imported from models
- code2llm/core/file_analyzer.py:393 - Duplicate import: 'Config' (first at line 10)
- code2llm/core/file_analyzer.py:148 - Magic number in comparison: 20
- code2llm/core/file_analyzer.py:148 - Magic number: 20 - use named constant
- code2llm/core/file_filter.py:6 - Relative import (level=1): '.config'
- code2llm/core/file_filter.py:7 - Relative import (level=1): '.gitignore'
- code2llm/core/lang/init.py:3 - Relative import (level=1): '.typescript'
- code2llm/core/lang/init.py:4 - Relative import (level=1): '.go_lang'
- code2llm/core/lang/init.py:5 - Relative import (level=1): '.rust'
- code2llm/core/lang/init.py:3 - Unused analyze_typescript_js imported from typescript
- code2llm/core/lang/init.py:4 - Unused analyze_go imported from go_lang
- code2llm/core/lang/init.py:5 - Unused analyze_rust imported from rust
- code2llm/core/lang/base.py:146 - Relative import (level=2): '..models'
- code2llm/core/lang/base.py:254 - Relative import (level=2): '..models'
- code2llm/core/lang/base.py:305 - Relative import (level=2): '..models'
- code2llm/core/lang/base.py:66 - String concatenation can be converted to f-string
- code2llm/core/lang/base.py:254 - Duplicate import: 'ClassInfo' (first at line 146)
- code2llm/core/lang/base.py:305 - Duplicate import: 'FunctionInfo' (first at line 146)
- code2llm/core/lang/base.py:363 - Duplicate import: 'FunctionInfo' (first at line 146)
- code2llm/core/lang/base.py:67 - Magic number in comparison: 20
- code2llm/core/lang/base.py:67 - Magic number: 20 - use named constant
- code2llm/core/lang/base.py:128 - LLM-style docstring in _extract_declarations
- code2llm/core/gitignore.py:4 - Unused Set imported from typing
- code2llm/core/gitignore.py:4 - Unused import: 'Set'
- code2llm/core/lang/cpp.py:6 - Unused ClassInfo imported from code2llm.core.models
- code2llm/core/lang/cpp.py:6 - Unused FunctionInfo imported from code2llm.core.models
- code2llm/core/lang/cpp.py:6 - Unused ModuleInfo imported from code2llm.core.models
- code2llm/core/lang/csharp.py:6 - Unused ClassInfo imported from code2llm.core.models
- code2llm/core/lang/csharp.py:6 - Unused FunctionInfo imported from code2llm.core.models
- code2llm/core/lang/csharp.py:6 - Unused ModuleInfo imported from code2llm.core.models
- code2llm/core/lang/go_lang.py:4 - Unused Path imported from pathlib
- code2llm/core/lang/go_lang.py:4 - Unused import: 'Path'
- code2llm/core/lang/java.py:6 - Unused ClassInfo imported from code2llm.core.models
- code2llm/core/lang/java.py:6 - Unused FunctionInfo imported from code2llm.core.models
- code2llm/core/lang/java.py:6 - Unused ModuleInfo imported from code2llm.core.models
- code2llm/core/lang/ruby.py:28 - String concatenation can be converted to f-string
- code2llm/core/lang/ruby.py:133 - String concatenation can be converted to f-string
- code2llm/core/lang/ruby.py:6 - Unused ClassInfo imported from code2llm.core.models
- code2llm/core/lang/ruby.py:6 - Unused FunctionInfo imported from code2llm.core.models
- code2llm/core/lang/ruby.py:6 - Unused ModuleInfo imported from code2llm.core.models
- code2llm/core/lang/ruby.py:134 - Magic number in comparison: 20
- code2llm/core/lang/ruby.py:134 - Magic number: 20 - use named constant
- code2llm/core/lang/php.py:6 - Unused FunctionInfo imported from code2llm.core.models
- code2llm/core/lang/php.py:6 - Unused ModuleInfo imported from code2llm.core.models
- code2llm/core/lang/php.py:6 - Unused import: 'FunctionInfo'
- code2llm/core/lang/typescript.py:6 - Unused ClassInfo imported from code2llm.core.models
- code2llm/core/lang/typescript.py:6 - Unused FunctionInfo imported from code2llm.core.models
- code2llm/core/lang/typescript.py:6 - Unused ModuleInfo imported from code2llm.core.models
- code2llm/core/large_repo.py:14 - Relative import (level=1): '.repo_files'
- code2llm/core/large_repo.py:323 - Relative import (level=1): '.repo_files'
- code2llm/core/large_repo.py:168 - String concatenation can be converted to f-string
- code2llm/core/large_repo.py:242 - String concatenation can be converted to f-string
- code2llm/core/large_repo.py:222 - String concatenation can be converted to f-string
- code2llm/core/large_repo.py:11 - Unused Dict imported from typing
- code2llm/core/large_repo.py:11 - Unused Optional imported from typing
- code2llm/core/large_repo.py:11 - Unused import: 'Dict'
- code2llm/core/large_repo.py:323 - Duplicate import: 'should_skip_file' (first at line 14)
- code2llm/core/large_repo.py:54 - Magic number: 120 - use named constant
- code2llm/core/large_repo.py:56 - Magic number: 192 - use named constant
- code2llm/core/large_repo.py:205 - Magic number: 50 - use named constant
- code2llm/core/models.py:3 - Unused Path imported from pathlib
- code2llm/core/models.py:3 - Unused import: 'Path'
- code2llm/core/repo_files.py:7 - Relative import (level=1): '.gitignore'
- code2llm/core/repo_files.py:78 - String concatenation can be converted to f-string
- code2llm/core/repo_files.py:154 - Magic number: 50 - use named constant
- code2llm/core/repo_files.py:160 - Magic number: 80 - use named constant
- code2llm/core/repo_files.py:164 - Magic number: 40 - use named constant
- code2llm/core/streaming/init.py:3 - Relative import (level=1): '.strategies'
- code2llm/core/streaming/init.py:4 - Relative import (level=1): '.cache'
- code2llm/core/streaming/init.py:5 - Relative import (level=1): '.prioritizer'
- code2llm/core/streaming/init.py:3 - Unused ScanStrategy imported from strategies
- code2llm/core/streaming/init.py:3 - Unused STRATEGY_QUICK imported from strategies
- code2llm/core/streaming/init.py:3 - Unused STRATEGY_STANDARD imported from strategies
- code2llm/core/streaming/incremental.py:75 - String concatenation can be converted to f-string
- code2llm/core/refactoring.py:6 - Relative import (level=1): '.config'
- code2llm/core/refactoring.py:7 - Relative import (level=1): '.models'
- code2llm/core/refactoring.py:8 - Relative import (level=1): '.file_filter'
- code2llm/core/refactoring.py:4 - Unused Optional imported from typing
- code2llm/core/refactoring.py:4 - Unused import: 'Optional'
- code2llm/core/refactoring.py:94 - Duplicate import: 'nx' (first at line 55)
- code2llm/core/refactoring.py:74 - Duplicate import: 'nx' (first at line 55)
- code2llm/core/refactoring.py:77 - Duplicate import: 'nx' (first at line 55)
- code2llm/core/refactoring.py:69 - Magic number in comparison: 500
- code2llm/core/refactoring.py:69 - Magic number: 500 - use named constant
- code2llm/core/refactoring.py:73 - Magic number: 500 - use named constant
- code2llm/core/streaming/strategies.py:3 - Unused field imported from dataclasses
- code2llm/core/streaming/strategies.py:3 - Unused import: 'field'
- code2llm/core/streaming/strategies.py:20 - Magic number: 50 - use named constant
- code2llm/core/streaming/strategies.py:21 - Magic number: 10000 - use named constant
- code2llm/core/streaming/strategies.py:42 - Magic number: 200 - use named constant
- code2llm/core/streaming/prioritizer.py:9 - Relative import (level=1): '.strategies'
- code2llm/core/streaming/prioritizer.py:58 - Magic number: 50.0 - use named constant
- code2llm/core/streaming/prioritizer.py:64 - Magic number: 20.0 - use named constant
- code2llm/core/streaming/scanner.py:9 - Relative import (level=1): '.cache'
- code2llm/core/streaming/scanner.py:10 - Relative import (level=1): '.prioritizer'
- code2llm/core/streaming/scanner.py:11 - Relative import (level=1): '.strategies'
- code2llm/core/streaming/scanner.py:197 - String concatenation can be converted to f-string
- code2llm/core/streaming/scanner.py:101 - Magic number in comparison: 20
- code2llm/core/streaming/scanner.py:101 - Magic number: 20 - use named constant
- code2llm/core/streaming_analyzer.py:15 - Relative import (level=1): '.config'
- code2llm/core/streaming_analyzer.py:16 - Relative import (level=1): '.streaming'
- code2llm/core/streaming_analyzer.py:178 - Relative import (level=1): '.streaming'
- code2llm/core/streaming_analyzer.py:178 - Duplicate import: streaming.ScanStrategy
- code2llm/core/streaming_analyzer.py:178 - Duplicate import: streaming.STRATEGY_STANDARD
- code2llm/core/streaming_analyzer.py:178 - Duplicate import: streaming.StreamingFileCache
- code2llm/core/streaming_analyzer.py:13 - Unused List imported from typing
- code2llm/core/streaming_analyzer.py:13 - Unused Tuple imported from typing
- code2llm/core/streaming_analyzer.py:16 - Unused FilePriority imported from streaming
- code2llm/core/streaming_analyzer.py:121 - Magic number: 50 - use named constant
- code2llm/exporters/init.py:17 - Relative import (level=1): '.base'
- code2llm/exporters/init.py:18 - Relative import (level=1): '.json_exporter'
- code2llm/exporters/init.py:19 - Relative import (level=1): '.yaml_exporter'
- code2llm/exporters/article_view.py:18 - String concatenation can be converted to f-string
- code2llm/exporters/article_view.py:63 - Magic number in comparison: 15
- code2llm/exporters/article_view.py:63 - Magic number: 15 - use named constant
- code2llm/core/toon_size_manager.py:244 - String concatenation can be converted to f-string
- code2llm/core/toon_size_manager.py:194 - String concatenation can be converted to f-string
- code2llm/core/toon_size_manager.py:200 - String concatenation can be converted to f-string
- code2llm/exporters/context_exporter.py:10 - Relative import (level=1): '.base'
- code2llm/exporters/context_exporter.py:114 - String concatenation can be converted to f-string
- code2llm/exporters/context_exporter.py:221 - String concatenation can be converted to f-string
- code2llm/exporters/context_exporter.py:11 - Unused FunctionInfo imported from code2llm.core.models
- code2llm/exporters/context_exporter.py:11 - Unused import: 'FunctionInfo'
- code2llm/exporters/context_exporter.py:101 - Magic number: 20 - use named constant
- code2llm/exporters/context_exporter.py:121 - Magic number: 30 - use named constant
- code2llm/exporters/context_exporter.py:131 - Magic number: 20 - use named constant
- code2llm/exporters/flow_constants.py:7 - Magic number: 15 - use named constant
- code2llm/exporters/context_view.py:17 - String concatenation can be converted to f-string
- code2llm/exporters/evolution_exporter.py:16 - Relative import (level=1): '.base'
- code2llm/exporters/evolution_exporter.py:67 - String concatenation can be converted to f-string
- code2llm/exporters/evolution_exporter.py:14 - Unused Set imported from typing
- code2llm/exporters/evolution_exporter.py:14 - Unused Tuple imported from typing
- code2llm/exporters/evolution_exporter.py:17 - Unused FunctionInfo imported from code2llm.core.models
- code2llm/exporters/evolution_exporter.py:21 - Magic number: 15 - use named constant
- code2llm/exporters/evolution_exporter.py:23 - Magic number: 500 - use named constant
- code2llm/exporters/evolution_exporter.py:97 - Magic number in comparison: 20
- code2llm/exporters/flow_renderer.py:9 - Relative import (level=1): '.flow_constants'
- code2llm/exporters/flow_renderer.py:19 - Relative import (level=2): '..core.models'
- code2llm/exporters/flow_renderer.py:182 - String concatenation can be converted to f-string
- code2llm/exporters/flow_renderer.py:171 - String concatenation can be converted to f-string
- code2llm/exporters/flow_renderer.py:60 - Magic number: 40 - use named constant
- code2llm/exporters/html_dashboard.py:459 - Function 'trend' missing return type (suggested: -> str)
- code2llm/exporters/html_dashboard.py:123 - Magic number: 15 - use named constant
- code2llm/exporters/html_dashboard.py:132 - Magic number: 15 - use named constant
- code2llm/exporters/html_dashboard.py:141 - Magic number: 20 - use named constant
- code2llm/exporters/flow_exporter.py:19 - Relative import (level=1): '.base'
- code2llm/exporters/flow_exporter.py:20 - Relative import (level=1): '.flow_constants'
- code2llm/exporters/flow_exporter.py:21 - Relative import (level=1): '.flow_renderer'
- code2llm/exporters/flow_exporter.py:212 - String concatenation can be converted to f-string
- code2llm/exporters/flow_exporter.py:242 - String concatenation can be converted to f-string
- code2llm/exporters/flow_exporter.py:69 - String concatenation can be converted to f-string
- code2llm/exporters/flow_exporter.py:13 - Unused import ast
- code2llm/exporters/flow_exporter.py:17 - Unused Set imported from typing
- code2llm/exporters/flow_exporter.py:17 - Unused Tuple imported from typing
- code2llm/exporters/flow_exporter.py:168 - Magic number in comparison: 30
- code2llm/exporters/flow_exporter.py:170 - Magic number in comparison: 20
- code2llm/exporters/flow_exporter.py:168 - Magic number: 30 - use named constant
- code2llm/exporters/index_generator.py:92 - String concatenation can be converted to f-string
- code2llm/exporters/index_generator.py:9 - Unused Optional imported from typing
- code2llm/exporters/index_generator.py:9 - Unused import: 'Optional'
- code2llm/exporters/index_generator.py:91 - Magic number in comparison: 100000
- code2llm/exporters/index_generator.py:91 - Magic number: 100000 - use named constant
- code2llm/exporters/index_generator.py:92 - Magic number: 100000 - use named constant
- code2llm/exporters/json_exporter.py:5 - Relative import (level=1): '.base'
- code2llm/exporters/llm_exporter.py:7 - Relative import (level=1): '.context_exporter'
- code2llm/exporters/mermaid_exporter.py:18 - Relative import (level=1): '.base'
- code2llm/exporters/mermaid_exporter.py:20 - Relative import (level=1): '.mermaid_flow_helpers'
- code2llm/exporters/mermaid_exporter.py:297 - String concatenation can be converted to f-string
- code2llm/exporters/mermaid_exporter.py:480 - String concatenation can be converted to f-string
- code2llm/exporters/mermaid_exporter.py:74 - Magic number: 600 - use named constant
- code2llm/exporters/mermaid_exporter.py:102 - Magic number in comparison: 15
- code2llm/exporters/mermaid_exporter.py:137 - Magic number in comparison: 500
- code2llm/exporters/mermaid_flow_helpers.py:76 - Magic number: 15 - use named constant
- code2llm/exporters/mermaid_flow_helpers.py:98 - Magic number: 15 - use named constant
- code2llm/exporters/mermaid_flow_helpers.py:126 - Magic number: 15 - use named constant
- code2llm/exporters/map_exporter.py:18 - Relative import (level=1): '.base'
- code2llm/exporters/map_exporter.py:47 - String concatenation can be converted to f-string
- code2llm/exporters/map_exporter.py:16 - Unused Set imported from typing
- code2llm/exporters/map_exporter.py:19 - Unused ClassInfo imported from code2llm.core.models
- code2llm/exporters/map_exporter.py:16 - Unused import: 'Set'
- code2llm/exporters/map_exporter.py:378 - Magic number in comparison: 15
- code2llm/exporters/map_exporter.py:378 - Magic number: 15 - use named constant
- code2llm/exporters/map_exporter.py:170 - Magic number in comparison: 15
- code2llm/exporters/readme_exporter.py:12 - Relative import (level=1): '.base'
- code2llm/exporters/readme_exporter.py:7 - Unused import os
- code2llm/exporters/readme_exporter.py:7 - Unused import: 'os'
- code2llm/exporters/report_generators.py:13 - Relative import (level=1): '.toon_view'
- code2llm/exporters/report_generators.py:14 - Relative import (level=1): '.context_view'
- code2llm/exporters/report_generators.py:15 - Relative import (level=1): '.article_view'
- code2llm/exporters/project_yaml_exporter.py:18 - Relative import (level=1): '.base'
- code2llm/exporters/project_yaml_exporter.py:20 - Relative import (level=1): '.toon.helpers'
- code2llm/exporters/project_yaml_exporter.py:192 - String concatenation can be converted to f-string
- code2llm/exporters/project_yaml_exporter.py:16 - Unused Optional imported from typing
- code2llm/exporters/project_yaml_exporter.py:16 - Unused import: 'Optional'
- code2llm/exporters/project_yaml_exporter.py:26 - Magic number: 15 - use named constant
- code2llm/exporters/project_yaml_exporter.py:27 - Magic number: 20 - use named constant
- code2llm/exporters/project_yaml_exporter.py:28 - Magic number: 25 - use named constant
- code2llm/exporters/toon/init.py:9 - Relative import (level=1): '.metrics'
- code2llm/exporters/toon/init.py:10 - Relative import (level=1): '.renderer'
- code2llm/exporters/toon/init.py:11 - Relative import (level=1): '.helpers'
- code2llm/exporters/toon/init.py:54 - String concatenation can be converted to f-string
- code2llm/exporters/toon/init.py:11 - Unused _rel_path imported from helpers
- code2llm/exporters/toon/init.py:11 - Unused _package_of imported from helpers
- code2llm/exporters/toon/init.py:11 - Unused _package_of_module imported from helpers
- code2llm/exporters/toon/init.py:21 - Magic number: 20 - use named constant
- code2llm/exporters/toon/init.py:22 - Magic number: 15 - use named constant
- code2llm/exporters/toon/init.py:23 - Magic number: 50 - use named constant
- code2llm/exporters/toon/helpers.py:101 - Relative import (level=3): '...core.config'
- code2llm/exporters/toon/metrics.py:9 - Relative import (level=1): '.helpers'
- code2llm/exporters/toon/metrics.py:480 - Relative import (level=1): '.helpers'
- code2llm/exporters/toon/metrics.py:198 - Relative import (level=1): '.helpers'
- code2llm/exporters/toon/metrics.py:352 - String concatenation can be converted to f-string
- code2llm/exporters/toon/metrics.py:427 - Magic number: 500 - use named constant
- code2llm/exporters/toon/metrics.py:440 - Magic number: 15 - use named constant
- code2llm/exporters/toon/metrics.py:466 - Magic number: 15 - use named constant
- code2llm/exporters/toon/module_detail.py:7 - Relative import (level=1): '.helpers'
- code2llm/exporters/toon/module_detail.py:160 - String concatenation can be converted to f-string
- code2llm/exporters/toon/module_detail.py:11 - Magic number: 15 - use named constant
- code2llm/exporters/toon.py:8 - Relative import (level=1): '.toon'
- code2llm/exporters/toon.py:8 - Unused ToonExporter imported from toon
- code2llm/exporters/toon.py:8 - Unused import: 'ToonExporter'
- code2llm/exporters/toon/renderer.py:10 - Relative import (level=1): '.helpers'
- code2llm/exporters/toon/renderer.py:49 - Relative import (level=1): '.helpers'
- code2llm/exporters/toon/renderer.py:138 - String concatenation can be converted to f-string
- code2llm/exporters/toon/renderer.py:139 - String concatenation can be converted to f-string
- code2llm/exporters/toon/renderer.py:145 - String concatenation can be converted to f-string
- code2llm/exporters/toon/renderer.py:7 - Unused FunctionInfo imported from code2llm.core.models
- code2llm/exporters/toon/renderer.py:10 - Unused _package_of imported from helpers
- code2llm/exporters/toon/renderer.py:7 - Unused import: 'FunctionInfo'
- code2llm/exporters/toon/renderer.py:14 - Magic number: 15 - use named constant
- code2llm/exporters/toon/renderer.py:16 - Magic number: 15 - use named constant
- code2llm/exporters/toon/renderer.py:17 - Magic number: 500 - use named constant
- code2llm/exporters/yaml_exporter.py:6 - Relative import (level=1): '.base'
- code2llm/exporters/yaml_exporter.py:47 - String concatenation can be converted to f-string
- code2llm/exporters/yaml_exporter.py:26 - Duplicate import: 'defaultdict' (first at line 4)
- code2llm/exporters/yaml_exporter.py:47 - Magic number: 50 - use named constant
- code2llm/exporters/toon_view.py:31 - String concatenation can be converted to f-string
- code2llm/exporters/toon_view.py:93 - Magic number: 15 - use named constant
- code2llm/generators/init.py:6 - Relative import (level=1): '.llm_flow'
- code2llm/generators/init.py:7 - Relative import (level=1): '.mermaid'
- code2llm/nlp/init.py:9 - Relative import (level=1): '.pipeline'
- code2llm/nlp/init.py:10 - Relative import (level=1): '.normalization'
- code2llm/nlp/init.py:11 - Relative import (level=1): '.intent_matching'
- code2llm/generators/mermaid.py:250 - String concatenation can be converted to f-string
- code2llm/generators/mermaid.py:7 - Unused import sys
- code2llm/generators/mermaid.py:7 - Unused import: 'sys'
- code2llm/generators/mermaid.py:99 - Duplicate import: 're' (first at line 40)
- code2llm/generators/mermaid.py:141 - Duplicate import: 're' (first at line 40)
- code2llm/generators/mermaid.py:177 - Duplicate import: 're' (first at line 40)
- code2llm/generators/mermaid.py:414 - Magic number: 2000000 - use named constant
- code2llm/generators/mermaid.py:415 - Magic number: 20000 - use named constant
- code2llm/generators/mermaid.py:299 - Magic number: 2000000 - use named constant
- code2llm/generators/mermaid.py:471 - module execution block
- code2llm/generators/llm_task.py:283 - module execution block
- code2llm/generators/llm_flow.py:40 - String concatenation can be converted to f-string
- code2llm/generators/llm_flow.py:402 - String concatenation can be converted to f-string
- code2llm/generators/llm_flow.py:259 - String concatenation can be converted to f-string
- code2llm/generators/llm_flow.py:194 - Magic number: 50 - use named constant
- code2llm/generators/llm_flow.py:195 - Magic number: 80 - use named constant
- code2llm/generators/llm_flow.py:196 - Magic number: 120 - use named constant
- code2llm/generators/llm_flow.py:471 - module execution block
- code2llm/nlp/config.py:4 - Unused Optional imported from typing
- code2llm/nlp/config.py:4 - Unused import: 'Optional'
- code2llm/nlp/entity_resolution.py:15 - Relative import (level=1): '.config'
- code2llm/nlp/entity_resolution.py:194 - String concatenation can be converted to f-string
- code2llm/nlp/entity_resolution.py:200 - String concatenation can be converted to f-string
- code2llm/nlp/entity_resolution.py:224 - String concatenation can be converted to f-string
- code2llm/nlp/entity_resolution.py:12 - Unused Set imported from typing
- code2llm/nlp/entity_resolution.py:12 - Unused Tuple imported from typing
- code2llm/nlp/entity_resolution.py:12 - Unused import: 'Set'
- code2llm/nlp/normalization.py:15 - Relative import (level=1): '.config'
- code2llm/nlp/normalization.py:12 - Unused Dict imported from typing
- code2llm/nlp/normalization.py:12 - Unused import: 'Dict'
- code2llm/nlp/intent_matching.py:15 - Relative import (level=1): '.config'
- code2llm/nlp/intent_matching.py:107 - String concatenation can be converted to f-string
- code2llm/nlp/intent_matching.py:104 - String concatenation can be converted to f-string
- code2llm/nlp/intent_matching.py:191 - String concatenation can be converted to f-string
- code2llm/nlp/intent_matching.py:10 - Unused import re
- code2llm/nlp/intent_matching.py:12 - Unused Tuple imported from typing
- code2llm/nlp/intent_matching.py:10 - Unused import: 're'
- code2llm/parsers/toon_parser.py:83 - Function 'parse_toon_content' missing return type (suggested: -> Any)
- code2llm/parsers/toon_parser.py:125 - Function 'is_toon_file' missing return type (suggested: -> Any)
- code2llm/parsers/toon_parser.py:139 - Function 'load_toon' missing return type (suggested: -> Any)
- code2llm/patterns/detector.py:4 - Unused defaultdict imported from collections
- code2llm/patterns/detector.py:4 - Unused import: 'defaultdict'
- code2llm/refactor/prompt_engine.py:99 - String concatenation can be converted to f-string
- code2llm/refactor/prompt_engine.py:130 - String concatenation can be converted to f-string
- code2llm/refactor/prompt_engine.py:135 - String concatenation can be converted to f-string
- code2llm/refactor/prompt_engine.py:7 - Unused List imported from typing
- code2llm/refactor/prompt_engine.py:7 - Unused import: 'List'
- code2llm/refactor/prompt_engine.py:112 - Magic number: 50 - use named constant
- code2llm/refactor/prompt_engine.py:99 - Magic number: 20 - use named constant
- code2llm/refactor/prompt_engine.py:44 - Magic number in comparison: 4000
- demo_langs/invalid/sample_bad.py:7 - Expected
:, found newline - demo_langs/invalid/sample_bad.py:8 - Simple statements must be separated by newlines or semicolons
- demo_langs/invalid/sample_bad.py:9 - Simple statements must be separated by newlines or semicolons
- code2llm/nlp/pipeline.py:14 - Relative import (level=1): '.config'
- code2llm/nlp/pipeline.py:15 - Relative import (level=1): '.normalization'
- code2llm/nlp/pipeline.py:16 - Relative import (level=1): '.intent_matching'
- code2llm/nlp/pipeline.py:271 - String concatenation can be converted to f-string
- code2llm/nlp/pipeline.py:12 - Unused Path imported from pathlib
- code2llm/nlp/pipeline.py:12 - Unused import: 'Path'
- demo_langs/valid/sample.py:30 - Function 'main' missing return type (suggested: -> None)
- demo_langs/valid/sample.py:30 - standalone main function
- demo_langs/valid/sample.py:39 - module execution block
- examples/litellm/run.py:95 - Function 'main' missing return type (suggested: -> None)
- examples/litellm/run.py:60 - String concatenation can be converted to f-string
- examples/litellm/run.py:109 - String concatenation can be converted to f-string
- examples/litellm/run.py:111 - String concatenation can be converted to f-string
- examples/litellm/run.py:59 - Magic number in comparison: 3000
- examples/litellm/run.py:59 - Magic number: 3000 - use named constant
- examples/litellm/run.py:88 - Magic number: 2000 - use named constant
- examples/litellm/run.py:95 - standalone main function
- examples/litellm/run.py:119 - module execution block
- examples/streaming-analyzer/demo.py:26 - Function 'demo_quick_strategy' missing return type (suggested: -> None)
- examples/streaming-analyzer/demo.py:53 - Function 'demo_standard_strategy' missing return type (suggested: -> None)
- examples/streaming-analyzer/demo.py:81 - Function 'demo_deep_strategy' missing return type (suggested: -> None)
- examples/streaming-analyzer/demo.py:238 - String concatenation can be converted to f-string
- examples/streaming-analyzer/demo.py:29 - Magic number: 50 - use named constant
- examples/streaming-analyzer/demo.py:56 - Magic number: 50 - use named constant
- examples/streaming-analyzer/demo.py:84 - Magic number: 50 - use named constant
- examples/streaming-analyzer/demo.py:26 - Example function in production code
- examples/streaming-analyzer/demo.py:53 - Example function in production code
- examples/streaming-analyzer/demo.py:81 - Example function in production code
- examples/streaming-analyzer/demo.py:210 - standalone main function
- examples/streaming-analyzer/demo.py:250 - module execution block
- examples/streaming-analyzer/sample_project/api.py:5 - Relative import (level=1): '.database'
- examples/streaming-analyzer/sample_project/api.py:34 - String concatenation can be converted to f-string
- examples/streaming-analyzer/sample_project/api.py:4 - Unused Optional imported from typing
- examples/streaming-analyzer/sample_project/api.py:4 - Unused import: 'Optional'
- examples/functional_refactoring_example.py:354 - Relative import (level=1): '.entities.preparer'
- examples/functional_refactoring_example.py:355 - Relative import (level=1): '.templates.loader'
- examples/functional_refactoring_example.py:356 - Relative import (level=1): '.templates.renderer'
- examples/functional_refactoring_example.py:78 - Duplicate import: typing.Dict
- examples/functional_refactoring_example.py:78 - Duplicate import: typing.Any
- examples/functional_refactoring_example.py:78 - Duplicate import: typing.Protocol
- examples/functional_refactoring_example.py:570 - Function 'generate' missing return type (suggested: -> None)
- examples/functional_refactoring_example.py:335 - Function 'replace_conditional' missing return type (suggested: -> Any)
- examples/functional_refactoring_example.py:531 - String concatenation can be converted to f-string
- examples/functional_refactoring_example.py:543 - String concatenation can be converted to f-string
- examples/functional_refactoring_example.py:79 - Unused ABC imported from abc
- examples/functional_refactoring_example.py:79 - Unused abstractmethod imported from abc
- examples/functional_refactoring_example.py:423 - Unused List imported from typing
- examples/functional_refactoring_example.py:375 - LLM-style docstring in generate
- examples/streaming-analyzer/sample_project/auth.py:84 - String concatenation can be converted to f-string
- examples/streaming-analyzer/sample_project/database.py:122 - String concatenation can be converted to f-string
- examples/streaming-analyzer/test_example.py:13 - Function 'test_imports' missing return type (suggested: -> bool)
- examples/streaming-analyzer/test_example.py:29 - Function 'test_basic_analysis' missing return type (suggested: -> bool)
- examples/streaming-analyzer/test_example.py:52 - Function 'main' missing return type (suggested: -> int)
- examples/streaming-analyzer/test_example.py:32 - Duplicate import: 'StreamingAnalyzer' (first at line 16)
- examples/streaming-analyzer/test_example.py:32 - Duplicate import: 'STRATEGY_QUICK' (first at line 16)
- examples/streaming-analyzer/test_example.py:52 - standalone main function
- examples/streaming-analyzer/test_example.py:91 - module execution block
- examples/streaming-analyzer/sample_project/main.py:7 - Relative import (level=1): '.auth'
- examples/streaming-analyzer/sample_project/main.py:8 - Relative import (level=1): '.database'
- examples/streaming-analyzer/sample_project/main.py:9 - Relative import (level=1): '.api'
- examples/streaming-analyzer/sample_project/main.py:146 - Function 'main' missing return type (suggested: -> None)
- examples/streaming-analyzer/sample_project/main.py:5 - Unused List imported from typing
- examples/streaming-analyzer/sample_project/main.py:5 - Unused import: 'List'
- examples/streaming-analyzer/sample_project/main.py:146 - standalone main function
- examples/streaming-analyzer/sample_project/main.py:157 - module execution block
- scripts/benchmark_badges.py:343 - Function 'main' missing return type (suggested: -> None)
- scripts/benchmark_badges.py:137 - String concatenation can be converted to f-string
- scripts/benchmark_badges.py:343 - standalone main function
- scripts/benchmark_badges.py:391 - module execution block
- scripts/bump_version.py:11 - Function 'get_current_version' missing return type (suggested: -> Any)
- scripts/bump_version.py:26 - Function 'parse_version' missing return type (suggested: -> Any)
- scripts/bump_version.py:31 - Function 'format_version' missing return type (suggested: -> Any)
- scripts/bump_version.py:77 - standalone main function
- scripts/bump_version.py:95 - module execution block
- test_langs/invalid/sample_bad.py:3 - Expected
,, found name - test_langs/invalid/sample_bad.py:7 - Expected
:, found newline - test_langs/invalid/sample_bad.py:8 - Simple statements must be separated by newlines or semicolons
- setup.py:10 - Function 'read_readme' missing return type (suggested: -> Any)
- test_langs/valid/sample.py:30 - Function 'main' missing return type (suggested: -> None)
- test_langs/valid/sample.py:30 - standalone main function
- test_langs/valid/sample.py:39 - module execution block
- test_python_only/invalid/sample_bad.py:3 - Expected
,, found name - test_python_only/invalid/sample_bad.py:7 - Expected
:, found newline - test_python_only/invalid/sample_bad.py:8 - Simple statements must be separated by newlines or semicolons
- test_python_only/valid/sample.py:30 - Function 'main' missing return type (suggested: -> None)
- test_python_only/valid/sample.py:30 - standalone main function
- test_python_only/valid/sample.py:39 - module execution block
- validate_toon.py:14 - Function 'load_yaml' missing return type (suggested: -> Any)
- validate_toon.py:23 - Function 'load_file' missing return type (suggested: -> Any)
- validate_toon.py:30 - Function 'extract_functions_from_yaml' missing return type (suggested: -> Any)
- validate_toon.py:321 - String concatenation can be converted to f-string
- validate_toon.py:328 - String concatenation can be converted to f-string
- validate_toon.py:364 - String concatenation can be converted to f-string
- validate_toon.py:7 - Unused defaultdict imported from collections
- validate_toon.py:10 - Unused parse_toon_content imported from code2llm.parsers.toon_parser
- validate_toon.py:7 - Unused import: 'defaultdict'
- validate_toon.py:79 - Magic number: 50 - use named constant
- validate_toon.py:144 - Magic number: 50 - use named constant
- validate_toon.py:165 - Magic number: 50 - use named constant
- validate_toon.py:297 - standalone main function
- validate_toon.py:393 - module execution block
To execute all tasks, run: prefact -a --execute-todos