help-nano
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the format that linters are expected to produce


From: Benno Schulenberg
Subject: Re: What is the format that linters are expected to produce
Date: Thu, 17 Dec 2020 09:41:38 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]