Scony / godot-gdscript-toolkit

Independent set of GDScript tools - parser, linter, formatter, and more
MIT License
957 stars 65 forks source link

Always add newline after `@rpc(...)` #261

Closed tavurth closed 8 months ago

tavurth commented 8 months ago
@rpc("authority", "call_local", "reliable")
func some_func():

The above quite commonly gets refactored to:

@rpc("authority", "call_local", "reliable") func some_func():

Which seems harder to read?

In general type annotations for functions could always be on a new line?

Scony commented 8 months ago

Yes, I already did some changes to support it, but I think @rpc annotation was not taken into account. Thanks for reporting!

Scony commented 8 months ago

I've checked and it should actually work by now - @tavurth what version of gdtoolkit do you use?

tavurth commented 8 months ago

@Scony

▶ gdformat --version
gdformat 4.0.1
tavurth commented 8 months ago

Thank you! Working in 4.2.2