Skip to content

If function argument list fits the current line it is kept intact even if line is too long from return argument (v0.23.0) #300

Description

@blabdouze

Given this line :

func _init(open_xr_analog_threshold_modifier_long: OpenXRAnalogThresholdModifier, other_type: Test) -> void:
	pass

It will not break the argument list, making the lint action to fail :

gdscript-formatter lint test.gd
.\test.gd:4:max-line-length:warning: Line is too long. Found 108 characters, maximum allowed is 100

If the argument list itself goes over the line limit, it is correctly formated ;

func _init(open_xr_analog_threshold_modifier_long: OpenXRAnalogThresholdModifier, open_xr_analog_threshold_modifier_v2: OpenXRAnalogThresholdModifier) -> void:
	pass
func _init(
	open_xr_analog_threshold_modifier_long: OpenXRAnalogThresholdModifier,
	open_xr_analog_threshold_modifier_v2: OpenXRAnalogThresholdModifier,
) -> void:
	pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions