John McCabe-Dansted wrote:
I was wondering that too.
I just tried (linelen = 1), and it works pretty well, i.e., it focuses
on the single issue rather than the entire line :-) but my experience
with the tool is so poor.
Ideally this would not uncover any bugs as LyX-GC has to deal with
linebreaks. I will try setting the ChkTeX linelen to 1 and seeing what
breaks. This might uncover some bugs in LyX-GC where errors get missed
if they are split onto multiple lines.
As of now, I get a stupid
===========
Warning 36 in /tmp/lyx_tmpdir.TJ8403/lyx_tmpbuf0/good-bad-ugly.tex line
102: You should put a space in front of parenthesis.
(see
^
===========
but actually my text reads as "writing letters (see section~1)". Of
course, in the temporary export, I have:
===========
writing
letters
(see
section~1).
===========
So, that's why chktex is complaining about the missing space -- this is
to be considered as a chktex bug (IMHO) -- however, in the
View->SourceCode, I just see
"those for writing letters (see section~1)". This may be misleading for
people accustomed to applying chktex to latex sources.
===========
those for writing letters (see section~1).
===========
Probably you have more experience than me in using chktex, so, please,
comment on this. In the meantime, I'm leaving just the standard linelen
from the RC file also for chktex.
T.