bugLaTeX semantic checker - Bugs: bug #64273, disabled solo parentheses are...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64273: disabled solo parentheses are reported at end of document

Submitter:  Franz Bethke <franzbethke>
Submitted:  Fri 02 Jun 2023 12:43:38 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Confirmed
Privacy:  Public Assigned to:  gvol
Open/Closed:  Open

Fri 09 Jun 2023 03:34:18 PM UTC, comment #1: 

I should add some way to wipe the arguments of an environment.  In the meantime, if you don't mind jumping through a few hoops, you can add a \hide that does nothing:


\documentclass{article}%

\usepackage{enumitem}
\let\hide=\relax
\begin{document}

    \begin{enumerate}[label=\roman*\hide{)}]
        \item one
        \item two
    \end{enumerate}

    % This is unbalanced: See completion-at-point-functionse.g.\ \texttt{https://savannah.nongnu.org})

    Try this instead: (See e.g.\ \texttt{https://savannah.nongnu.org}

\end{document}


And then use it to hide anything from ChkTeX that you don't want by adding to your .chktexrc in the WipeArg section:


WipeArg
{
    \hide:{}
}



Ivan Andrus <gvol>
Group administrator
Fri 02 Jun 2023 12:43:38 PM UTC, original submission:  

Consider the code in main.tex.

The enumerate definition uses a single closing ")".
The linter warnings 9, 10 are disabled as they are false positives.

However, at the end of the document 17 is reported.

I do not want to disable 17 in line 16 (globally) since it is useful in reporting true positives as in line 12.

Moreover, if 12 is commented and 14 is added the "global" warning disappears.

Ty, for your work on chktex.

Cheers,
Franz

Franz Bethke <franzbethke>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #54805:  main.tex added by franzbethke (337B - text/x-tex)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gvol (Posted a comment)
  • -email is unavailable- added by franzbethke (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-06-09 gvol StatusNone Confirmed
        Assigned toNone gvol
    2023-06-02 franzbethke Attached File- Added main.tex, #54805

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code