Re: What is the format that linters are expected to produce
Benno Schulenberg <[email protected]> Thu, 17 Dec 2020 09:41:38 +0100
| Newsgroups | gmane.editors.nano.general |
|---|---|
| Message-ID | <[email protected]> |
Op 15-12-2020 om 02:52 schreef Philip White:
> I'm trying to provide syntax highlight for a small language I have. I
> would like to also provide a formatter and a linter. The formatter I
> have successfully created, but I can't find any type of documentation
> for what a linter is expected to do. My guess was that it would just
> need to spit out some lines like
>
> filename:10:10 some error
Almost. A colon is missing after the second number.
> But setting the linter to
>
> linter echo filename:10:10
>
> still report 0 linter items.
It's not enough. Any linter will also produce a message.
The clearest format is:
filename:11,22: some message
> Is there documentation somewhere for the expected behavior of a linter.
It is not documented, except in the source:
https://git.savannah.gnu.org/cgit/nano.git/tree/src/text.c?id=0f334f8ee4#n2669
Benno
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEv9AJBh5TUFKtDfIVDSjU0qCs6IQFAl/bGcsACgkQDSjU0qCs 6IQZFA//X5LTQE5qpGC/By8N3wXQ8dis+5SIIsCoudCUGNd/jcwg11ETgx3Q77Ht 1RyG7839mqOI/I+MTGiYpO4seGRi7HSk9xBr3HhzXCiyjJB5lfqQN81pFTIbxfcy F54zxs7YeHzEZoBo/StB1l9qSy5XX8qxt3EPycibnevaVHsDbT6WOL247emI3kZp 3bUpRP0qLR9I6wT48SyBP/PtfxLI5kUjxL+q2A4oEmI1MeNvVpyrA+byZese9KHv z7TJwvUMw41UabsI3rU0F/5772Otg/VF+u9vUT4kTABj8AS6jBF0hXBKaVeML2Qt qp5CvCQTiK3IhHGqLniUmnj/uHstjVaAoUyiDQo22EMNWf6Xb6eBXchUc1C82sY0 n7MdZVzxteY7VFPt+Qpa79i7+Xr8QZNAVuu8TY1momxp4Co13nbNJUhp0lDTikOj /2XicGez8aq37WEg8w34nYSHS7YX8a6blc/DkcYG2qT+aT3pWQt7NAi8lbIkmodV AywsKosYwffYG1FM6HuM66fcS+5gYv0rr5uVtyG0XCWmPN4FnSy9Ee45cZZLFhWj xAHg3TTqgtpoYA47bDwc1ZWz8wvFY7FZutE52JogslOVdXGBDYo90gtvFQafFk+Y mvhxGrNx08+WSMKm+eNVZ6ch/BoJskZ7Dg9Eu6mNqF6UsYKSG8g= =Nz4g -----END PGP SIGNATURE-----