Closed joncle closed 9 years ago
oooo, I have a test tomorrow but I'll try this out on Tuesday. Great idea....identity the lines with noqa and skip them. wow. now I feel like an idiot.
Also, thanks for pointing out ast.
I was trying to come up with something as robust without having to read the file twice.
Fixed in master, pushed as 1.4. Works. stdin has cases that don't work the same given the same file, but mostly good.
You could (although I haven't tested it, and I'm afraid don't have time to do a PR) tokenize the source file to identify lines with
# noqa
comments:Then carry on with
parsed
as you are, but exclude messages whose line is present innoqa
...