Releases: Scony/godot-gdscript-toolkit
Releases · Scony/godot-gdscript-toolkit
4.1.0
4.0.1
3.5.0
4.0.0
Added
- Added new GDScript
2.0constructs to the core testcases - Added support for
await - Added support for typed arrays
- Added support for annotations
- Added support for unique node names
- Added support for property etters
- Added support for inline-lambdas
- Added support for func-level constants
- Added support for typed signal arguments
Changed
- Removed support for legacy (Godot
3.x) GDScript from core testcases - Updated
larkdependency to the latest release -1.1.5 - Improved
subscr_expr/getattr/getattr_callchains formatting
3.4.0
Added
- Added
no-elif-returnlinter check - Added
no-else-returnlinter check - Added
gd2py(GDScript-to-python) converter tool - Added
gdradoncode metrics tool
Fixed
- Workarounded a lark error impacting pretty print in frontends
- Fixed lack of trailing comma handler in some corner cases
- Fixed lack of support for plus prefixed expressions
- Fixed lack of support for
Vector2/3()inmatchpatterns - Fixed formatter's corner case in
func()
3.3.1
Added
- Added support for
export onready varstatement onclasslevel - Added support for
mastersyncandpuppetsyncfunctions - Added support for standalone comments in expressions (except for few corner-cases)
- Added
--diffoption togdformatwhich acts the same as--check, but with additional difference printing - Added support for single line pattern formatting (forced for now)
- Added
--fastoption togdformatto skip safety checks (thus being faster)
Fixed
- Fixed exception handling in
gdparse,gdlint, andgdformat - Fixed adding newlines around non-standard functions like
static func,master funcetc. - Fixed if-stmt-related corner case where formatting shred a colon
Changed
- Changed formatter to keep going despite failures
3.3.0
Added
- Added support for
passstatement onclasslevel - Added a possibility to disable linter checks in range from e.g.
# gdlint: disable=function-nameto# gdlint: enable=function-name - Added support for
puppet var - Added string formatting according to
GDScript style guide('x'->"x",'"'->'"'."'"->"'",'"\''->"\"'") - Added linter option
tab-charactersthat allows treating tabs as multiple characters while calculating line length
Fixed
- Fixed comment persistence check
- Improved comments handling
- Improved utf08 support
- Fixed type cast (e.g.
1 as String) to always be in one line (this is forced by Godot's bug)
Changed
- Removed support for legacy (godot
3.1) parentheseslessassert(e.g.assert 1 == 1) due to grammar conflict with modern (godot3.2assert) - exclamation-mark-based not-test expression will be now formatted without space (
!(1==1)instead of! (1==1)) while fornotthe behaviour remains the same (not (1==1)) - Removed whitespace from
export (...)- will be formatted asexport(...)from now on
3.2.8
Added
- Added support for legacy (godot 3.1) parenthesesless
assert(e.g.assert 1 == 1) - Added support for recursive file finding in
gdlint(e.g.gdlint dir1/ dir2/) - Added pre-commit hooks which can consumed by
pre-commitproject - Added a possibility to disable linter checks (e.g.
# gdlint: ignore=function-nameinline or in the line before) - Added support for underscored numeric literals such as
1_000_000,1_000.000, and0xff_99_00
Fixed
- Introduced WA for Godot's
preloadbug - Improved formatter to remove trailing whitespaces also from comments
- Added missing
class_name (...) extends (...)statement support in grammar and formatter - Fixed false positive
TreeInvariantViolationforneg_expr
Changed
var x = load('some.tres')is allowed since it may be custom resource instance loading
3.2.7
3.2.6
Fixed
- Improved comment parsing time by a tiny chunk
- Improved formatting time due to loosen grammar removal
- Improved formatting time due to grammar caching
- Improved formatting time due to parse tree reuse in safety checks
- Fixed bug in grammar causing func suite to consume statements from outer scope
Changed
- Enum doesn't add trailing comma unless it was in place from the very beginning
- Level-0 standalone comments are not indented anymore