cosmetic: remove trailing whitespace
Use regular expression for ignore patterns.

Fixes #7.
Allow project-wide ignores.
Fix typo.
This is covered by extension rule.
Merge pull request #8 from ext/master

RE ignore patterns and project-wide ignore