format_file
Auto-format Fortran files in-place using fprettify to enforce modern indentation and spacing. Customize indent, line length, and whitespace settings.
Instructions
Auto-formats a local Fortran file in-place using fprettify to enforce modern indentation and spacing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the Fortran file. | |
| indent | No | Relative indentation width (default: 3). | |
| line_length | No | Column after which a line should end (default: 132). | |
| whitespace | No | Preset (0-4) for the amount of whitespace (default: 2). | |
| strict_indent | No | Strictly impose indentation even for nested loops (default: False). | |
| enable_decl | No | Enable whitespace formatting of declarations (default: False). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |