GDScript Formatter is a source code formatting and linting utility developed by GDQuest for the Godot 4 game engine. Written in Rust, it uses Tree-sitter parsing technology to analyze GDScript source files efficiently. The application automatically standardizes code formatting according to established GDScript conventions. Developers can customize formatting behavior through EditorConfig files and command-line parameters. Its integrated linter identifies naming convention violations, unused arguments, redundant expressions, and other code quality issues. Users can exclude specific files or preserve manually formatted sections through dedicated comments. The project supports automatic formatting on save, editor integration, and pre-commit hooks for maintaining consistent code across development teams.
Features
- High-performance GDScript source code formatting using Rust and Tree-sitter
- Automatic formatting based on established Godot 4 coding conventions
- Configurable formatting preferences through EditorConfig and command-line parameters
- Integrated linting for identifying style violations and code quality issues
- Selective formatting exclusions for individual files, directories, and code sections
- Automatic formatting on save with code editor integration and pre-commit hooks