code_stats.py

LunaEngine Code Statistics Script
Counts lines of code, files, and provides detailed statistics

class CodeStatistics

Description

No documentation

Methods
def __init__(self: Any, root_dir: str) -> Any
No documentation
def count_themes_in_engine(self: Any) -> Dict
Count the number of themes available in LunaEngine
Returns: Dictionary with theme statistics
def count_lines_in_file(self: Any, file_path: Path) -> Tuple[int, int, int]
Count lines in a file
Returns: (total_lines, code_lines, comment_lines, blank_lines)
def get_all_files(self: Any) -> List[Path]
Get all relevant files in the project
def get_project_structure(self: Any) -> List[str]
Get the complete project structure as a list of formatted lines
def format_structure_tree(self: Any, structure_lines: List[str]) -> str
Format the structure lines as a tree
def get_file_emoji(self: Any, extension: str) -> str
Get appropriate emoji for file type
def analyze_project(self: Any) -> Dict
Analyze the entire project and return statistics
def get_code_density(self: Any, stats: Any) -> Any
No documentation
def print_statistics(self: Any, stats: Dict) -> Any
Print formatted statistics

Global Functions

def main() -> Any

No documentation

def save_detailed_report(stats: Dict, report_file: Path, analyzer: CodeStatistics) -> Any

Save a detailed markdown report

Back to Tools Module