{"repo":"Scony/godot-gdscript-toolkit","free":true,"listed":false,"github":"https://github.com/Scony/godot-gdscript-toolkit","clone":"git clone https://github.com/Scony/godot-gdscript-toolkit.git","description":"Independent set of GDScript tools - parser, linter, formatter, and more","language":"Python","stars":1593,"topics":["gdscript","godot","formatter","linter","parser","godot-engine"],"license":"MIT","category":"dev-tools","readme_excerpt":"GDScript Toolkit This project provides a set of tools for daily work with GDScript . At the moment it provides: - A parser that produces a parse tree for debugging and educational purposes. - A linter that performs a static analysis according to some predefined configuration. - A formatter that formats the code according to some predefined rules. - A code metrics calculator which calculates cyclomatic complexity of functions and classes. Installation To install this project you need python3 and pip . Regardless of the target version, installation is done by pip3 command and for stable releases, it downloads the package from PyPI. Godot 4 Godot 3 master (latest) Latest version (potentially unstable) can be installed directly from git: Linting with gdlint (more) To run a linter you need to execute gdlint command like: Which outputs messages like: Formatting with gdformat (more) Formatting may lead to data loss, so it's highly recommended to use it along with Version Control System (VCS) e.g. git To run a formatter you need to execute gdformat on the file you want to format. So, given a test.gd file: when you execute gdformat test.gd command, the test.gd file will be reformatted as follows: Parsing with gdparse (more) To run a parser you need to execute the gdparse command like: The parser outputs a tree that represents your code's structure: Calculating cyclomatic complexity with gdradon To run cyclomatic complexity calculator you need to execute the gdradon command like: The c","default_branch":null,"files":null,"tree":[],"storefront":"/r/Scony","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Scony/godot-gdscript-toolkit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}