elijah-potter / harper

The Grammar Checker for Developers
https://writewithharper.com
Apache License 2.0
1.93k stars 36 forks source link

feat: Commented-out code should not be linted #201

Closed grantlemons closed 1 month ago

grantlemons commented 1 month ago

I don't know how feasable this is, but it really bugs me that commented-out code gets linted, as it blows up my editor with a bunch of lints when I just want to temporarily disable a block of code.

Maybe we could check if the comment contains valid syntax for the language and use that to determine whether it is an actual comment or just commented-out code.

grantlemons commented 1 month ago

Nevermind, this is a duplicate of #132.