Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add 2 new customizable variables for tcl-nagelfar checker #1906

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 23 additions & 1 deletion flycheck.el
Original file line number Diff line number Diff line change
Expand Up @@ -12056,11 +12056,33 @@ See URL

(flycheck-def-config-file-var flycheck-chktexrc tex-chktex ".chktexrc")

(flycheck-def-args-var flycheck-tcl-nagelfar-args tcl-nagelfar
:package-version '(flycheck . "0.32"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should say 35.0.


(flycheck-def-option-var flycheck-tcl-nagelfar-headers nil tcl-nagelfar
"A list of additional header files for nagelfar.
A header file is created by executing nagelfar with the -header option.
A use case for this is if you are working on a large TCL project with
functions spanning across multiple files & directories. You scan the
project first and create the header(s) then load it when checking
against an individual TCL file so as to avoid false-positive
\"unknown command\" messages.
The value of this variable is a list of strings, where each
string is a file to include before syntax checking. Relative
paths are relative to the file being checked."
:type '(repeat (file :tag "Include file"))
:safe #'flycheck-string-list-p
:package-version '(flycheck . "0.32"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.


(flycheck-define-checker tcl-nagelfar
"An extensible tcl syntax checker

See URL `http://nagelfar.sourceforge.net/'."
:command ("nagelfar" "-H" source)
:command ("nagelfar"
"-H"
(option-list "" flycheck-tcl-nagelfar-headers)
(eval flycheck-tcl-nagelfar-args)
source)
:error-patterns
;; foo.tcl: 29: E Wrong number of arguments (4) to "set"
;; foo.tcl: 29: W Expr without braces
Expand Down