The style-checker performs its indentation check on cleansed lines, this means that comments are not checked for indentation, and inline comments followed by white-space will be miscounted by style-checker.
Instead the style-checker should perform indentation check on raw-lines. This way it will also ensure comments correctly indented.
Created attachment 172353 [details]
Comment on attachment 172353 [details]
Please add a test. There's a nice unit testing framework for this code.
Created attachment 172531 [details]
Comment on attachment 172531 [details]
I want to run a one more test on this patch before landing. I am uncertain if multi-line comments are correctly handled, or might give false errors.