directives: Fix DOS lines messing with rule IDs
Fixes #325 The linter allows a directive to contain trailing whitespace characters like \r, but does not trim them before iterating on the rules. As a result, the last rule in the list contains the trailing whitespace characters and never matches any existing rule. I added the necessary trimming, as well as a test with 2 checks to go along with it.pull/327/head^2
parent
67cb4eb24d
commit
027d1b0a9a
Loading…
Reference in New Issue