Skip to content

Add some restriction to callParameter.defaultWrap: "keep" #691

@RblSb

Description

@RblSb

Describe the Feature

I use this hxformat.json option to select arguments style personally

{
	"wrapping": {
		"callParameter": {
			"defaultWrap": "keep"
		}
	}
}

The only minor problem i see with this is when such cases

class Main {
	static function main() {
		on(e -> {
			trace(1);});
	}

	static function on(callback:Any):Void {}
}

Not auto-formatted into this:

class Main {
	static function main() {
		on(e -> {
			trace(1);
		});
	}

	static function on(callback:Any):Void {}
}

It would be nice to have some option to force newline after ; (except for comments after it), or always add newline between ;} tokens in "keep" wrap mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwrappingIncorrect or undesirable wrapping

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions