Skip to content

move comment before #776

Description

@xenoterracide

given

    <module name="IllegalImport" /><!-- defaults to sun.* packages -->

I would like the reformat to be

    <!-- defaults to sun.* packages -->
    <module name="IllegalImport" />

instead of

    <module name="IllegalImport" />
    <!-- defaults to sun.* packages -->

note: obviously I've turned off whitespace sensitivity.

I feel like this would be a sensible default with whitespace sensitivity turned off, but an option would be nice too. I feel like programming convention is, comments to the right affect code to the left. Comments before affect code below. So moving the comment to be after changes the ... semantics.

Alternative, or maybe in addition to, if you could leave the comment alone if it's not making the line too long.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions