Computes project-wide quality metrics and a legacy heatmap for Fortran code. Aggregates lines of code, comment density, and legacy constructs, then assigns a modernization score.
Analyzes Fortran module dependencies, detecting modules with mutable public state. Computes fan-in/fan-out metrics and generates a Mermaid diagram of module hierarchy.
Serves a facts-only index of SWAT+ Fortran source as read-only MCP tools, enabling coding assistants to answer exhaustive questions about loops, call graphs, file I/O, and other source facts with file and line references.
Automatically formats Fortran code with fprettify to enforce consistent indentation and spacing, improving readability and adhering to style guidelines.
Visualise legacy code structure and generate a migration roadmap to modern languages like Python or Go. Produces diagrams, risk flags, and a phased plan.
Identify every Fortran routine that opens, reads, or writes a specified file, including unit numbers and line references, and resolve output files opened via open_output_file across the entire source tree.