Skip to content

Inspection for redundant leading, inline and trailing line continuations (also Indenter setting) #4229

Open
@ThunderFrame

Description

@ThunderFrame

For those digging for the continuator badge, line continuations are a secret weapon, but a line that contains nothing other than a line continuation is redundant, and should be removed to improve readability.

 _
 _
Option _
_
Explicit _
 _
 _

' ^ End of Option Explicit Statement

Note that the trailing line continuation, by definition, includes the blank line after the last line continuator.

Could, at a minimum, be rewritten as:

 Option _
Explicit
' ^ End of Option Explicit Statement

This could be an inspection, but also be an indenter setting, so that it's taken care of on indent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    edge-caseMarks a bug as an edge case that would be nice to fix, but that likely doesn't affect normal use.enhancementFeature requests, or enhancements to existing features. Ideas. Anything within the project's scope.feature-inspectionsfeature-smart-indenter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions