PrincetonUniversity / blocklint

MIT License
7 stars 7 forks source link

Allow skipping particular lines #18

Closed feinbd closed 1 year ago

feinbd commented 1 year ago

I have a line that reads a table from a database which has the word "master" in it. I obviously can't change this. I need a way to flag this line as not to be checked by blocklint, not the whole file. I don't see a way to do this.

troycomi commented 1 year ago

If you can add an inline comment, any line ending in blocklint: pragma will be ignored. This was added with PR #6 and an example is here. I apologize that the feature didn't get put into the readme!

I'll leave this open to remind me to add a section to the readme. I hope the pragma resolves your issue, otherwise let me know more details.

feinbd commented 1 year ago

This works, thank you!