Skip to content

Commit

Permalink
Pass -lang en flag to tidy
Browse files Browse the repository at this point in the history
Localized error messages also localize the diagnostic
type (e.g. "Warning" becomes "Avertissement" in French), which make them
unparseable by Flycheck.

Forcing English messages makes Flycheck parse the diagnostic correctly,
at the cost of losing the localization.

This is a partial fix for GH-1376.
  • Loading branch information
fmdkdd committed Apr 9, 2018
1 parent 0a588ed commit b0930de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flycheck.el
Original file line number Diff line number Diff line change
Expand Up @@ -8157,7 +8157,9 @@ See URL `https://github.com/ndmitchell/hlint'."
"A HTML syntax and style checker using Tidy.

See URL `https://github.com/htacg/tidy-html5'."
:command ("tidy" (config-file "-config" flycheck-tidyrc) "-e" "-q")
:command ("tidy" (config-file "-config" flycheck-tidyrc)
"-lang" "en"
"-e" "-q")
:standard-input t
:error-patterns
((error line-start
Expand Down

0 comments on commit b0930de

Please sign in to comment.