Skip to content

GDScript formatter 0.25.0

Latest

Choose a tag to compare

@github-actions github-actions released this 06 Sep 19:41
· 1 commit to main since this release

A fast code formatter for GDScript in Godot 4.

Changelog

Added

  • Added --verbose option to print one line per formatted file (#227)

Changed

  • Removed space between lambda function name and parameter list
  • Force @export and @onready annotations to stay on the same line as a variable, but keep other annotations separate, including annotations on local variables (#333)
  • Stop trying to format any code containing parse errors. Until now we tried to still format definitions around the code with errors, but this can lead to cases where the formatter produces invalid code
  • Add line wrapping for annotation arguments (#330)

Fixed

  • Fixed an extra comma being inserted after a trailing comment in a lambda function argument (#304)
  • fixed certain export annotations being moved out of their respective groups (#308)
  • Preserve up to one blank line used to group elements in "containers" like enums
  • Fixed losing blank line between statements in a body if the previous statement has an inline comment (#320, thanks @Buitragox for the fix)
  • Fixed various edge cases with ignored directories: paths are now normalized before comparison
  • Fixed special get syntax with parentheses having an extra space (#314)
  • Output warnings to stderr when using reorder and safe mode together (#332)
  • Removed the space between ... and variadic parameter names (#331)
  • Fixed incorrect indentation for match patterns using and or or (#328)

Learn more about the formatter in the GDScript Formatter documentation