Skip to content

Suppress warning for disallowTrailingWhitespace in situations where IDE will auto remove it. #15

@jamestalmage

Description

@jamestalmage

The default settings for IDEA/Webstorm removes whitespace at the end of lines when you save.

However, prior to saving, blank lines created during your current editing session will have spaces inserted to match the current indentation. This creates a warning from jscs that disappears as soon as you hit save.

before save:

screenshot 2015-03-10 15 14 31

after save:

screenshot 2015-03-10 15 14 48

Dots turned on so you can see the whitespace - notice the two dots on the empty line.

It would be nice if there was a way to disable warnings about whitespace if it was all going to end up getting trimmed out when you save. Minimally, a checkbox in the jscs plugin settings ("IDE will auto remove trailing white space"). Bonus points for querying the actual whitespace removal settings in the IDE.

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