godot-gdscript-toolkit
GDScript Toolkit provides command-line tools for GDScript development, including a parser, linter, formatter, and code metrics calculator. It integrates with Godot 3 and 4, offering static analysis, code formatting, and complexity analysis.
https://github.com/Scony/godot-gdscript-toolkitGDScript Toolkit: Enhance Your GDScript Workflow
The GDScript Toolkit is a suite of command-line tools designed to improve the daily workflow of GDScript developers. It offers functionalities like parsing, linting, formatting, and calculating code metrics.
Key Features
- Parser: Generates a parse tree for debugging and educational purposes.
- Linter (gdlint): Performs static analysis based on predefined configurations to identify potential issues in your code.
- Formatter (gdformat): Automatically formats code according to predefined rules, ensuring consistent code style.
- Code Metrics Calculator (gdradon): Calculates the cyclomatic complexity of functions and classes to help identify overly complex code.
Installation and Usage
The toolkit is installed using pip3
and supports both Godot 3 and Godot 4. The latest version can be installed directly from the Git repository. It can be integrated into your workflow using GitHub Actions or as a pre-commit hook.
Integrating with Your Workflow
The toolkit offers integration with GitHub Actions for automated static checks and pre-commit hooks to ensure code quality before committing changes. These integrations help maintain code quality and consistency across your projects.