Feature Request: trailing whitespace only on non-empty lines

The Basic Text Linter will chew all of the whitespace on whitespace-only lines. Some editors like Xcode will produce such lines by default in order to maintain a uniform indent level. It would be great if there were an option for the Basic Text Linter to have lintTrailingWhitespace only count white space on non-empty lines. I think you’d want an option in ArcanistTextLinter.php like this.

‘text.trailing-whitespace-non-empty-only’ => array(
‘type’ => ‘optional boolean’,
‘help’ => pht(
‘Only produce a trailing whitespace lint message for non-empty lines (off by default).’),

Then if set, lintTrailingWhitespace would change its regular expression to ‘/[^[:space:]]+([[:blank:]]+)$/m’ and iterate over $matches[1].