clutchski/coffeelint — pull request #9 by szinsli (2012-02-22 01:56:27+00:00)
Title: trailing whitespace update for blank lines and \r\n

Quick hack of your regex `trailingWhitespace`:

```js
/\s+$/
```
becomes:

```js
/[^\s]+[\t ]+\r?$/
```

- Ignores `\r` to be friendly to windows users' newlines

- Checks that there are leading non-whitespace characters

- Allows things like this (dots=spaces):
- ```coffeescript
#editors will often maintain indentation for new lines and
#I don't want to retrospectively clear out the spaces :)
herp = () ->
..le()
..
..derp()
```

Happy for this to be altered if you think I've done something dumb