Skip to content

add configuration option to trim trailing whitespaces #1097

@bkhouri

Description

@bkhouri

As a software developer using swift format, I would like a configuration to trim trailing whitespaces.

I used swift format to format my entire code base, and it reformatted multi-line comments to include whitespaces on empty lines

        /**
         An argument is an arbitrary key-value entry that adds more information to the remark.
        
         Depending on the key, the value can be interpreted as a string, integer, etc.
        
         The debug location associated with the argument may refer to a separate location in the code.
         */

instead of:

        /**
         An argument is an arbitrary key-value entry that adds more information to the remark.

         Depending on the key, the value can be interpreted as a string, integer, etc.

         The debug location associated with the argument may refer to a separate location in the code.
         */

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions