Skip to content

} else { //Are we allowed to comment here? If not, message is wrong #36

@westonruter

Description

@westonruter

Reported by @mwic: I make frequent use of comments on else control structures , so that I don't have to scroll around to see what condition is being else'd. e.g.
if ( $parrotIsAlive ) {
[snip]
} else { //parrot has ceased to be
[snip]
}

With your standard I get a misleading message on this attempt.
"Blank line found at start of control structure"
Whether or not the comment is allowed, the message needs to be fixed

Full writeup:
http://mwic.org/wp/index.php/blank-line-found-at-start-of-control-structure-when-there-isnt-a-blank-line-there

https://gist.github.com/mwic/5248309

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