Skip to content

[Not planned] Add support for automatic line wrapping #187

@anonimitoraf

Description

@anonimitoraf

Maintainer edit: This formatter works by following your queues to format on a single vs multiple lines. See Formatting on single vs multiple lines in the documentation for more information.

When I run lint on a long line, I get this warning (which is great):

src/Traits/Trait.gd:25:max-line-length:warning: Line is too long. Found 126 characters, maximum allowed is 100

Code:

func to_json() -> Dictionary:
	return { "level": level, "max_level": max_level, "incompatible_with": incompatible_with.map(func(t): return t.to_json()) }

I would've expected this formatter to automatically split it for me, but instead, just ignores it. Is that possible to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions