Open ainar-g opened 3 years ago
@ainar-g completely unrelated to this issue: for the past couple of months, the issues you have filed contain a lot of HTML, which makes it awkward to read them in a plain text email reader, as well as to edit:
Do you know why that's the case?
I do actually know why that's the case, and the reason is because I write them that way, heh. For multiple reasons, I've come to… dislike markup languages descended from Markdown recently, so I switched to using raw HTML, which most decent Markdown dialects allow, thankfully. It seems like GitHub encodes neither Markdown nor HTML into plain text when sending messages as E-mails, which is… sad.
I'll refrain from using HTML on GitHub, now that I know that. Thanks for the heads up and sorry for inconvenience. Should I rewrite the OP?
Don't worry about the OP :)
As for the directives and multi-line: a single directive consists of a single line, or in other words, a single //
comment. That's definitely true for Staticcheck, and probably true for Go.
I'll leave this issue open to remind me to improve the docs.
(This is probably an upstream issue, as I wasn't able to find a good description of how multiline directives [pragmas? magic comments?] should work in Go, but the
staticcheck
directives are the ones I care about the most at the moment, so I'll post this in here.)staticcheck
's documentation should clarify if either of these is invalid or if there is any difference between them: