1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309
|
.. _flycheck-languages:
=====================
Supported Languages
=====================
This document lists all programming and markup languages which Flycheck
supports.
.. note::
Extensions may provide support for additional languages or add deeper
integration with existing languages.
Take a look at the :ref:`list of extensions <flycheck-extensions>` to see
what the community can offer to you.
Each language has one or more syntax checkers whose names follow a convention of
:samp:`{language}-{tool}`. All syntax checkers are listed in the order they
would be applied to a buffer, with all available options. For more information
about a syntax checker open Emacs and use :command:`flycheck-describe-checker`
to view the docstring of the syntax checker. Likewise, you may use
:command:`describe-variable` to read the complete docstring of any option.
.. supported-language:: Ada
.. syntax-checker:: ada-gnat
Check ADA syntax and types with `GNAT`_.
.. _GNAT: http://libre.adacore.com/tools/gnat-gpl-edition
.. defcustom:: flycheck-gnat-args
A list of additional options.
.. defcustom:: flycheck-gnat-include-path
A list of include directories. Relative paths are relative to the path
of the buffer being checked.
.. defcustom:: flycheck-gnat-language-standard
The language standard to use as string.
.. defcustom:: flycheck-gnat-warnings
A list of additional warnings to enable. Each item is the name of a
warning category to enable.
.. supported-language:: AsciiDoc
.. syntax-checker:: asciidoctor
Check AsciiDoc with the default Asciidoctor_ backend.
.. _Asciidoctor: http://asciidoctor.org
.. syntax-checker:: asciidoc
Check AsciiDoc_ with the standard AsciiDoc processor.
.. _AsciiDoc: http://www.methods.co.nz/asciidoc
.. supported-language:: C/C++
:index_as: C
C++
Flycheck checks C and C++ with either `c/c++-clang` or `c/c++-gcc`, and then
with `c/c++-cppcheck`.
.. syntax-checker:: c/c++-clang
c/c++-gcc
Check C/C++ for syntax and type errors with Clang_ or GCC_ respectively.
.. note::
`c/c++-gcc` requires GCC 4.4 or newer.
.. _Clang: http://clang.llvm.org/
.. _GCC: https://gcc.gnu.org/
.. defcustom:: flycheck-clang-args
flycheck-gcc-args
A list of additional arguments for `c/c++-clang` and `c/c++-gcc`
respectively.
.. defcustom:: flycheck-clang-blocks
Whether to enable blocks in `c/c++-clang`.
.. defcustom:: flycheck-clang-definitions
flycheck-gcc-definitions
A list of additional preprocessor definitions for `c/c++-clang` and
`c/c++-gcc` respectively.
.. defcustom:: flycheck-clang-include-path
flycheck-gcc-include-path
A list of include directories for `c/c++-clang` and `c/c++-gcc`
respectively, relative to the file being checked.
.. defcustom:: flycheck-clang-includes
flycheck-gcc-includes
A list of additional include files for `c/c++-clang` and `c/c++-gcc`
respectively, relative to the file being checked.
.. defcustom:: flycheck-clang-language-standard
flycheck-gcc-language-standard
The language standard to use in `c/c++-clang` and `c/c++-gcc`
respectively as string, via the ``-std`` option.
.. defcustom:: flycheck-clang-ms-extensions
Whether to enable Microsoft extensions to C/C++ in `c/c++-clang`.
.. defcustom:: flycheck-clang-no-exceptions
flycheck-gcc-no-exceptions
Whether to disable exceptions in `c/c++-clang` and
`c/c++-gcc` respectively.
.. defcustom:: flycheck-clang-no-rtti
flycheck-gcc-no-rtti
Whether to disable RTTI in `c/c++-clang` and `c/c++-gcc` respectively,
via ``-fno-rtti``.
.. defcustom:: flycheck-clang-standard-library
The name of the standard library to use for `c/c++-clang`, as string.
.. defcustom:: flycheck-gcc-openmp
Whether to enable OpenMP in `c/c++-gcc`.
.. defcustom:: flycheck-clang-pedantic
flycheck-gcc-pedantic
Whether to warn about language extensions in `c/c++-clang` and
`c/c++-gcc` respectively.
.. defcustom:: flycheck-clang-pedantic-errors
flycheck-gcc-pedantic-errors
Whether to error on language extensions in `c/c++-clang` and
`c/c++-gcc` respectively.
.. defcustom:: flycheck-clang-warnings
flycheck-gcc-warnings
A list of additional warnings to enable in `c/c++-clang` and
`c/c++-gcc` respectively. Each item is the name of a warning or
warning category for ``-W``.
.. syntax-checker:: c/c++-cppcheck
Check C/C++ for semantic and stylistic issues with cppcheck_.
.. _cppcheck: http://cppcheck.sourceforge.net/
.. defcustom:: flycheck-cppcheck-checks
A list of enabled checks. Each item is the name of a check for the
``--enable`` option.
.. defcustom:: flycheck-cppcheck-inconclusive
Whether to enable inconclusive checks. These checks may yield more
false positives than normal checks.
.. note::
This option requires cppcheck 1.54 or newer.
.. defcustom:: flycheck-cppcheck-include-path
A list of include directories. Relative paths are relative to the file
being checked.
.. defcustom:: flycheck-cppcheck-standards
The C, C++ and/or POSIX standards to use via one or more ``--std=``
arguments.
.. defcustom:: flycheck-cppcheck-suppressions
The cppcheck suppressions list to use via one or more ``--suppress=``
arguments.
.. supported-language:: CFEngine
.. syntax-checker:: cfengine
Check syntax with `CFEngine <https://cfengine.com/>`_.
.. supported-language:: Chef
.. syntax-checker:: chef-foodcritic
Check style in Chef recipes with `foodcritic <http://www.foodcritic.io>`_.
.. defcustom:: flycheck-foodcritic-tags
A list of tags to select.
.. supported-language:: Coffeescript
Flycheck checks Coffeescript syntax with `coffee` and then lints with
`coffee-coffeelint`.
.. syntax-checker:: coffee
Check syntax with the `Coffeescript <http://coffeescript.org/>`_ compiler.
.. syntax-checker:: coffee-coffeelint
Lint with `Coffeelint <http://www.coffeelint.org/>`_.
.. syntax-checker-config-file:: flycheck-coffeelintrc
.. supported-language:: Coq
.. syntax-checker:: coq
Check and proof with the standard `Coq <https://coq.inria.fr/>`_ compiler.
.. supported-language:: CSS
.. syntax-checker:: css-csslint
Check syntax and style with `CSSLint`_.
.. _CSSLint: https://github.com/CSSLint/csslint
.. syntax-checker:: css-stylelint
Syntax-check and lint CSS with stylelint_.
.. _stylelint: https://stylelint.io
.. syntax-checker-config-file:: flycheck-stylelintrc
.. defcustom:: flycheck-stylelint-quiet
Whether to run stylelint in quiet mode via ``--quiet``.
.. supported-language:: D
.. syntax-checker:: d-dmd
Check syntax and types with (`DMD <http://dlang.org/>`_).
.. note::
This syntax checker requires DMD 2.066 or newer.
.. defcustom:: flycheck-dmd-include-path
A list of include directories.
.. defcustom:: flycheck-dmd-args
A list of additional arguments.
.. seealso::
:flyc:`flycheck-d-unittest`
Flycheck extension which provides a syntax checker to run D unittests
on the fly and report the results with Flycheck.
.. supported-language:: Dockerfile
.. syntax-checker:: dockerfile-hadolint
Check syntax and code style with hadolint_
.. _hadolint: http://hadolint.lukasmartinelli.ch/
.. supported-language:: Elixir
.. syntax-checker:: elixir-dogma
Check syntax and code style with `Dogma <https://github.com/lpil/dogma>`_.
.. supported-language:: Emacs Lisp
Flycheck checks Emacs Lisp with `emacs-lisp` and then with
`emacs-lisp-checkdoc`.
.. syntax-checker:: emacs-lisp
Check syntax with the built-in byte compiler.
.. defcustom:: flycheck-emacs-lisp-load-path
The load path as list of strings. Relative directories are expanded
against the `default-directory` of the buffer being checked.
.. defcustom:: flycheck-emacs-lisp-initialize-packages
Whether to initialize Emacs' package manager with `package-initialize`
before checking the buffer. If set to :elisp:`auto` (the default),
only initialize the package managers when checking files under
`user-emacs-directory`.
.. defcustom:: flycheck-emacs-lisp-package-user-dir
The package directory as string. Has no effect if
`flycheck-emacs-lisp-initialize-packages` is nil.
.. defcustom:: flycheck-emacs-lisp-check-declare
If non-nil, also check `declare-function` forms using
`check-declare-file`.
.. syntax-checker:: emacs-lisp-checkdoc
Check Emacs Lisp documentation conventions with ``checkdoc``.
.. seealso::
:infonode:`(elisp)Documentation Tips`
Information about documentation conventions for Emacs Lisp.
:gh:`purcell/flycheck-package`
Flycheck extension which adds a syntax checker to check for violation
of Emacs Lisp library headers and packaging conventions.
:infonode:`(elisp)Library Headers`
Information about library headers for Emacs Lisp files.
.. supported-language:: Erlang
Flycheck checks Erlang with `erlang-rebar3` in rebar projects and
`erlang` otherwise.
.. syntax-checker:: erlang
Check Erlang with the standard `Erlang <http://www.erlang.org/>`_
compiler.
.. defcustom:: flycheck-erlang-include-path
A list of include directories.
.. defcustom:: flycheck-erlang-library-path
A list of library directories.
.. syntax-checker:: erlang-rebar3
Check Erlang with the `rebar3 <https://www.rebar3.org/>`_ build tool.
.. supported-language:: ERuby
.. syntax-checker:: eruby-erubis
Check ERuby with `erubis <http://www.kuwata-lab.com/erubis/>`_.
.. supported-language:: Fortran
.. syntax-checker:: fortran-gfortran
Check Fortran syntax and type with GFortran_.
.. _GFortran: https://gcc.gnu.org/onlinedocs/gfortran/
.. defcustom:: flycheck-gfortran-args
A list of additional arguments.
.. defcustom:: flycheck-gfortran-include-path
A list of include directories. Relative paths are relative to the file
being checked.
.. defcustom:: flycheck-gfortran-language-standard
The language standard to use via the ``-std`` option.
.. defcustom:: flycheck-gfortran-layout
The source code layout to use. Set to :elisp:`free` or :elisp:`fixed`
for free or fixed layout respectively, or nil (the default) to let
GFortran automatically determine the layout.
.. defcustom:: flycheck-gfortran-warnings
A list of warnings enabled via the ``-W`` option.
.. supported-language:: Go
Flycheck checks Go with the following checkers:
1. `go-gofmt`
2. `go-golint`
3. `go-vet`
4. `go-build` or `go-test`
5. `go-errcheck`
6. `go-unconvert`
7. `go-megacheck`
.. syntax-checker:: go-gofmt
Check Go syntax with `gofmt <https://golang.org/cmd/gofmt/>`_.
.. syntax-checker:: go-golint
Check Go code style with `Golint <https://github.com/golang/lint>`_.
.. syntax-checker:: go-vet
Check Go for suspicious code with vet_.
.. defcustom:: flycheck-go-vet-print-functions
A list of print-like functions to check calls for format string problems.
.. defcustom:: flycheck-go-vet-shadow
Whether to check for shadowed variables, in Go 1.6 or newer.
.. defcustom:: flycheck-go-build-tags
A list of build tags.
.. _vet: https://golang.org/cmd/vet/
.. syntax-checker:: go-build
Check syntax and type with the `Go compiler`_.
.. note::
This syntax checker requires Go 1.6 or newer.
.. _Go compiler: https://golang.org/cmd/go
.. defcustom:: flycheck-go-build-install-deps
Whether to install dependencies while checking with `go-build` or
`go-test`
.. defcustom:: flycheck-go-build-tags
:noindex:
See `flycheck-go-build-tags`
.. syntax-checker:: go-test
Check syntax and types of Go tests with the `Go compiler`_.
.. note::
This syntax checker requires Go 1.6 or newer.
.. defcustom:: flycheck-go-build-install-deps
:noindex:
See `flycheck-go-build-install-deps`.
.. defcustom:: flycheck-go-build-tags
:noindex:
See `flycheck-go-build-tags`
.. syntax-checker:: go-errcheck
Check for unhandled error returns in Go with errcheck_.
.. note::
This syntax checker requires errcheck build from commit 8515d34 (Aug
28th, 2015) or newer.
.. _errcheck: https://github.com/kisielk/errcheck
.. defcustom:: flycheck-go-build-tags
:noindex:
See `flycheck-go-build-tags`
.. syntax-checker:: go-unconvert
Check for unnecessary type conversions with unconvert_.
.. _unconvert: https://github.com/mdempsky/unconvert
.. syntax-checker:: go-megacheck
Lint code with megacheck_.
.. defcustom:: flycheck-go-megacheck-disabled-checkers
A list of checkers to disable when running megacheck_.
.. _megacheck: https://github.com/dominikh/go-tools
.. supported-language:: Groovy
.. syntax-checker:: groovy
Check syntax using the `Groovy <http://www.groovy-lang.org/>`_ compiler.
.. supported-language:: Haml
.. syntax-checker:: haml
Check syntax with the `Haml <http://haml.info/>`_ compiler.
.. supported-language:: Handlebars
.. syntax-checker:: handlebars
Check syntax with the `Handlebars <http://handlebarsjs.com/>`_ compiler.
.. supported-language:: Haskell
Flycheck checks Haskell with `haskell-stack-ghc` (in Stack projects) or
`haskell-ghc`, and then with `haskell-hlint`.
.. seealso::
:flyc:`flycheck-haskell`
Flycheck extension to configure Flycheck's Haskell checkers from the
metadata, with support for Cabal sandboxes.
:flyc:`flycheck-hdevtools`
Flycheck extension which adds an alternative syntax checker for GHC
using `hdevtools <https://github.com/bitc/hdevtools/>`_.
.. syntax-checker:: haskell-stack-ghc
haskell-ghc
Check syntax and type GHC_. In Stack_ projects invoke GHC through Stack
to bring package dependencies from Stack in.
.. _GHC: https://www.haskell.org/ghc/
.. _Stack: https://github.com/commercialhaskell/stack
.. defcustom:: flycheck-ghc-args
A list of additional arguments.
.. defcustom:: flycheck-ghc-no-user-package-database
Whether to disable the user package database (only for `haskell-ghc`).
.. defcustom:: flycheck-ghc-stack-use-nix
Whether to enable Nix support for Stack (only for `haskell-stack-ghc`).
.. defcustom:: flycheck-ghc-package-databases
A list of additional package databases for GHC (only for
`haskell-ghc`). Each item points to a directory containing a package
directory, via ``-package-db``.
.. defcustom:: flycheck-ghc-search-path
A list of module directories, via ``-i``.
.. defcustom:: flycheck-ghc-language-extensions
A list of language extensions, via ``-X``.
.. syntax-checker:: haskell-hlint
Lint with `hlint <https://github.com/ndmitchell/hlint>`_.
.. defcustom:: flycheck-hlint-args
A list of additional arguments.
.. defcustom:: flycheck-hlint-language-extensions
A list of language extensions to enable.
.. defcustom:: flycheck-hlint-ignore-rules
A list of rules to ignore.
.. defcustom:: flycheck-hlint-hint-packages
A list of additional hint packages to include.
.. syntax-checker-config-file:: flycheck-hlintrc
.. supported-language:: HTML
.. syntax-checker:: html-tidy
Check HTML syntax and style with `Tidy HTML5`_.
.. _Tidy HTML5: https://github.com/htacg/tidy-html5
.. syntax-checker-config-file:: flycheck-tidyrc
.. supported-language:: Javascript
Flycheck checks Javascript with one of `javascript-eslint` or
`javascript-jshint`, and then with `javascript-jscs`.
Alternatively `javascript-standard` is used instead all of the former ones.
.. syntax-checker:: javascript-eslint
Check syntax and lint with `ESLint <http://eslint.org/>`_.
.. note::
Flycheck automatically :ref:`disables <flycheck-disable-checkers>`
this syntax checker if eslint cannot find a valid configuration file
for the current buffer.
.. defcustom:: flycheck-eslint-rules-directories
A list of directories with custom rules.
.. syntax-checker:: javascript-jshint
Check syntax and lint with `JSHint <http://jshint.com/>`_.
.. defcustom:: flycheck-jshint-extract-javascript
Whether to extract Javascript from HTML before linting.
.. syntax-checker-config-file:: flycheck-jshintrc
.. syntax-checker:: javascript-jscs
Check code style with `JSCS <http://jscs.info/>`_.
.. syntax-checker-config-file:: flycheck-jscsrc
.. syntax-checker:: javascript-standard
Check syntax and code style with Standard_ or Semistandard_.
.. _Standard: https://github.com/feross/standard
.. _Semistandard: https://github.com/Flet/semistandard
.. supported-language:: JSON
Flycheck checks JSON with `json-jsonlint` or `json-python-json`.
.. syntax-checker:: json-jsonlint
Check JSON with `jsonlint <https://github.com/zaach/jsonlint>`_.
.. syntax-checker:: json-python-json
Check JSON with Python's built-in :py:mod:`json` module.
.. supported-language:: Less
.. syntax-checker:: less
Check syntax with the `Less <http://lesscss.org/>`_ compiler.
.. note::
This syntax checker requires lessc 1.4 or newer.
.. syntax-checker:: less-stylelint
Syntax-check and lint Less with stylelint_.
.. _stylelint: https://stylelint.io
.. syntax-checker-config-file:: flycheck-stylelintrc
.. defcustom:: flycheck-stylelint-quiet
Whether to run stylelint in quiet mode via ``--quiet``.
.. supported-language:: LLVM
.. syntax-checker:: llvm-llc
Check syntax with `llc <http://llvm.org/docs/CommandGuide/llc.html>`_.
.. supported-language:: Lua
Flycheck checks Lua with `lua-luacheck`, falling back to `lua`.
.. syntax-checker:: lua-luacheck
Check syntax and lint with Luacheck_.
.. syntax-checker-config-file:: flycheck-luacheckrc
.. defcustom:: flycheck-luacheck-standards
The luacheck standards to use via one or more ``--std`` arguments.
.. _Luacheck: https://github.com/mpeterv/luacheck
.. syntax-checker:: lua
Check syntax with the `Lua compiler <http://www.lua.org/>`_.
.. supported-language:: Markdown
.. syntax-checker:: markdown-mdl
Check Markdown with `markdownlint <https://github.com/mivok/markdownlint/>`_.
.. defcustom:: flycheck-markdown-mdl-rules
A list of enabled rules.
.. defcustom:: flycheck-markdown-mdl-tags
A list of enabled rule tags.
.. syntax-checker-config-file:: flycheck-markdown-mdl-style
.. supported-language:: Nix
.. syntax-checker:: nix
Check Nix with nix-instantiate_.
.. _nix-instantiate: https://nixos.org/nix/manual/#sec-nix-instantiate
.. supported-language:: Perl
Flycheck checks Perl with `perl` and `perl-perlcritic`.
.. syntax-checker:: perl
Check syntax with the `Perl <https://www.perl.org/>`_ interpreter.
.. defcustom:: flycheck-perl-include-path
A list of include directories, relative to the file being checked.
.. syntax-checker:: perl-perlcritic
Lint and check style with `Perl::Critic`_.
.. _Perl::Critic: https://metacpan.org/pod/Perl::Critic
.. defcustom:: flycheck-perlcritic-severity
The severity level as integer for the ``--severity``.
.. syntax-checker-config-file:: flycheck-perlcriticrc
.. supported-language:: PHP
Flycheck checks PHP with `php`, `php-phpmd` and `php-phpcs`.
.. syntax-checker:: php
Check syntax with `PHP CLI`_
.. _PHP CLI: http://php.net/manual/en/features.commandline.php
.. syntax-checker:: php-phpmd
Lint with `PHP Mess Detector <https://phpmd.org/>`_.
.. defcustom:: flycheck-phpmd-rulesets
A list of rule sets. Each item is either the name of a default rule
set, or the path to a custom rule set file.
.. syntax-checker:: php-phpcs
Check style with `PHP Code Sniffer`_.
.. note::
This syntax checker requires PHP Code Sniffer 2.6 or newer.
.. _PHP Code Sniffer: http://pear.php.net/package/PHP_CodeSniffer
.. defcustom:: flycheck-phpcs-standard
The coding standard, either as name of a built-in standard, or as path
to a standard specification.
.. supported-language:: Processing
.. syntax-checker:: processing
Check syntax using the `Processing <https://processing.org/>`_ compiler.
.. supported-language:: Protobuf
.. syntax-checker:: protobuf-protoc
Check syntax using the protoc_ compiler.
.. _protoc: https://developers.google.com/protocol-buffers/
.. supported-language:: Pug
.. syntax-checker:: pug
Check syntax using the `Pug <https://www.pugjs.org>`_ compiler.
.. supported-language:: Puppet
Flycheck checks Puppet with `puppet-parser` and lints with `puppet-lint`.
.. syntax-checker:: puppet-parser
Check syntax with the `Puppet <https://puppet.com/>`_ compiler.
.. syntax-checker:: puppet-lint
Link with `Puppet Lint <http://puppet-lint.com/>`_.
.. defcustom:: flycheck-puppet-lint-disabled-checks
A list of checks to disable.
.. syntax-checker-config-file:: flycheck-puppet-lint-rc
.. supported-language:: Python
Flycheck checks Python with `python-flake8` or `python-pylint`, and falls
back to `python-pycompile` if neither of those is available.
.. seealso::
:gh:`flycheck-pyflakes <Wilfred/flycheck-pyflakes>`
Flycheck extension which adds a syntax checker using `Pyflakes
<https://github.com/PyCQA/pyflakes>`_.
:gh:`msherry/flycheck-pycheckers`
Flycheck extension which can use multiple checkers simultaneously --
including pyflakes, pep8, flake8, pylint, and mypy 2/3.
.. syntax-checker:: python-flake8
Check syntax and lint with `flake8 <https://flake8.readthedocs.io/>`_.
.. note::
This syntax checker requires flake8 3.0 or newer.
.. defcustom:: flycheck-flake8-error-level-alist
An alist mapping Flake8 error IDs to Flycheck error levels.
.. defcustom:: flycheck-flake8-maximum-complexity
The maximum McCabe complexity allowed for methods.
.. defcustom:: flycheck-flake8-maximum-line-length
The maximum length of lines.
.. syntax-checker-config-file:: flycheck-flake8rc
.. syntax-checker:: python-pylint
Check syntax and lint with `Pylint <https://pylint.org/>`_.
.. note::
This syntax checker requires Pylint 1.0 or newer.
.. defcustom:: flycheck-pylint-use-symbolic-id
Whether to report symbolic (e.g. ``no-name-in-module``) or numeric
(e.g. ``E0611``) message identifiers.
.. syntax-checker-config-file:: flycheck-pylintrc
.. syntax-checker:: python-pycompile
Check syntax with Python's byte compiler (see :py:mod:`py_compile`).
.. supported-language:: R
.. syntax-checker:: r-lintr
Check syntax and lint with `lintr <https://github.com/jimhester/lintr>`_.
.. defcustom:: flycheck-lintr-caching
Whether to enable caching in lintr. On by default; it is not
recommended to disable caching unless it causes actual problems.
.. defcustom:: flycheck-lintr-linters
Linters to use as a string with an R expression which selects the
linters to use.
.. supported-language:: Racket
.. syntax-checker:: racket
Check syntax with `raco expand`_ from the ``compiler-lib`` package.
.. note::
This syntax checker needs the ``compiler-lib`` package.
.. _raco expand: http://docs.racket-lang.org/raco/expand.html
.. supported-language:: RPM Spec
.. syntax-checker:: rpm-rpmlint
Lint with `rpmlint <https://sourceforge.net/projects/rpmlint/>`_.
.. supported-language:: reStructuredText
Flycheck checks reStructuredText with `rst-sphinx` in Sphinx_ projects and
with `rst` otherwise.
.. _Sphinx: http://sphinx-doc.org/
.. syntax-checker:: rst-sphinx
Check documents with Sphinx_.
.. note::
This syntax checker requires Sphinx 1.2 or newer.
.. defcustom:: flycheck-sphinx-warn-on-missing-references
Whether to emit warnings for all missing references.
.. syntax-checker:: rst
Check documents with `docutils <http://docutils.sourceforge.net/>`_.
.. supported-language:: Ruby
Flycheck checks Ruby with `ruby-rubocop`, `ruby-reek` and `ruby-rubylint`,
falling back to `ruby` or `ruby-jruby` for basic syntax checking if those
are not available.
.. syntax-checker:: ruby-rubocop
Check syntax and lint with `RuboCop <http://batsov.com/rubocop/>`_.
.. note::
This syntax checker requires Rubocop 0.34 or newer.
.. defcustom:: flycheck-rubocop-lint-only
Whether to suppress warnings about style issues, via the ``--lint``
option.
.. syntax-checker-config-file:: flycheck-rubocoprc
.. syntax-checker:: ruby-reek
Check syntax and lint with reek_.
.. _Reek: https://github.com/troessner/reek
.. syntax-checker-config-file:: flycheck-reekrc
.. note::
``flycheck-reekrc`` defaults to ``nil``, because Reek can find its own
configuration.
.. syntax-checker:: ruby-rubylint
Check syntax and lint with ruby-lint_.
.. note::
This syntax checker requires ruby-lint 2.0.2 or newer.
.. _ruby-lint: http://code.yorickpeterse.com/ruby-lint/latest/
.. syntax-checker-config-file:: flycheck-rubylintrc
.. syntax-checker:: ruby
Check syntax with the `Ruby <https://www.ruby-lang.org/>`_ interpreter.
.. syntax-checker:: ruby-jruby
Check syntax with the `JRuby <http://jruby.org/>`_ interpreter.
.. supported-language:: Rust
Flycheck checks Rust_ with `rust-cargo` in Cargo projects, or `rust`
otherwise.
.. _Rust: https://www.rust-lang.org/
.. syntax-checker:: rust-cargo
rust
Check syntax and types with the Rust_ compiler. In a Cargo_ project the
compiler is invoked through ``cargo rustc`` to take Cargo dependencies
into account.
.. note::
`rust-cargo` requires Rust 1.15 or newer.
`rust` requires Rust 1.7 or newer.
.. _Cargo: http://doc.crates.io/index.html
.. seealso::
:flyc:`flycheck-rust`
Flycheck extension to configure Rust syntax checkers according to
the current Cargo_ project.
.. defcustom:: flycheck-rust-args
A list of additional arguments that are passed to rustc.
.. defcustom:: flycheck-cargo-rustc-args
A list of additional arguments passed to the cargo rustc subcommand
.. defcustom:: flycheck-rust-check-tests
Whether to check test code in Rust.
.. defcustom:: flycheck-rust-crate-root
A path to the crate root for the current buffer, or nil if the current
buffer is a crate by itself.
`rust-cargo` ignores this option as the crate root is given by Cargo.
.. defcustom:: flycheck-rust-crate-type
For `rust-cargo`, the target type as a string, one of ``lib``, ``bin``,
``example``, ``test`` or ``bench``. Can also be nil for projects with
a single target.
For `rust`, the type of the crate to check, as a string for the
``--crate-type`` option.
.. defcustom:: flycheck-rust-binary-name
The name of the binary to pass to ``cargo rustc --TARGET-TYPE``, as a
string.
For `rust-cargo`, always required unless `flycheck-rust-crate-type` is
``lib`` or nil, in which case it is ignored.
Ignored by `rust`.
.. defcustom:: flycheck-rust-library-path
A list of additional library directories. Relative paths are relative
to the buffer being checked.
.. supported-language:: Sass/SCSS
Flycheck checks SASS with `sass/scss-sass-lint`, falling back to `sass`, and
SCSS with `scss-lint` or `scss-stylelint` falling back to
`sass/scss-sass-lint` first and then `scss` if neither is available.
.. syntax-checker:: scss-lint
Syntax-check and lint SCSS with SCSS-Lint_.
.. note::
This syntax checker requires SCSS-Lint 0.43.2 or newer.
.. _SCSS-Lint: https://github.com/brigade/scss-lint
.. syntax-checker-config-file:: flycheck-scss-lintrc
.. syntax-checker:: sass/scss-sass-lint
Syntax-check and lint Sass/SCSS with SASS-Lint_.
.. _SASS-Lint: https://github.com/sasstools/sass-lint
.. syntax-checker-config-file:: flycheck-sass-lintrc
.. syntax-checker:: scss-stylelint
Syntax-check and lint SCSS with stylelint_.
.. _stylelint: https://stylelint.io
.. syntax-checker-config-file:: flycheck-stylelintrc
.. defcustom:: flycheck-stylelint-quiet
Whether to run stylelint in quiet mode via ``--quiet``.
.. syntax-checker:: sass
scss
Check SASS and SCSS respectively with the `SCSS compiler
<http://sass-lang.com/>`_.
.. defcustom:: flycheck-sass-compass
flycheck-scss-compass
Whether to enable the Compass CSS framework with ``--compass``.
.. supported-language:: Scala
Flycheck checks Scala with `scala` and `scala-scalastyle`.
.. syntax-checker:: scala
Check syntax and types with the `Scala <http://www.scala-lang.org/>`_
compiler.
.. note::
This syntax checker is fairly primitive. For a better Scala experience
we recommend Ensime_.
.. _Ensime: http://ensime.org/
.. syntax-checker:: scala-scalastyle
Check style with `Scalastyle <http://www.scalastyle.org/>`_.
.. syntax-checker-config-file:: flycheck-scalastylerc
.. important::
A configuration file is mandatory for this syntax checker. If
`flycheck-scalastylerc` is not set or the configuration file not found
this syntax checker will not be applied.
.. supported-language:: Scheme
Flycheck checks CHICKEN Scheme files with ``csc``.
.. syntax-checker:: scheme-chicken
Check syntax with ``csc``, the `CHICKEN Scheme <http://call-cc.org/>`_
compiler.
.. important::
`Geiser <http://www.nongnu.org/geiser/>`_ must be installed and active for
this checker to work.
.. supported-language:: Shell scripting languages
Flycheck checks various shell scripting languages:
* Bash with `sh-bash` and `sh-shellcheck`
* POSIX shell (i.e. :file:`/bin/sh`) with `sh-posix-dash` or `sh-posix-bash`
* Zsh with `sh-zsh`
.. syntax-checker:: sh-bash
Check Bash_ syntax.
.. _Bash: http://www.gnu.org/software/bash/
.. syntax-checker:: sh-posix-dash
Check POSIX shell syntax with Dash_.
.. _Dash: http://gondor.apana.org.au/~herbert/dash/
.. syntax-checker:: sh-posix-bash
Check POSIX shell syntax with Bash_.
.. syntax-checker:: sh-zsh
Check `Zsh <http://www.zsh.org/>`_ syntax.
.. syntax-checker:: sh-shellcheck
Lint Bash and POSIX shell with ShellCheck_.
.. _ShellCheck: https://github.com/koalaman/shellcheck/
.. defcustom:: flycheck-shellcheck-excluded-warnings
A list of excluded warnings.
.. defcustom:: flycheck-shellcheck-follow-sources
Allow shellcheck to read sourced files.
.. supported-language:: Slim
.. syntax-checker:: slim
Check Slim using the `Slim <http://slim-lang.com/>`_ compiler.
.. syntax-checker:: slim-lint
Check Slim best practices using the `slim-lint
<https://github.com/sds/slim-lint>`_ linter.
.. supported-language:: SQL
.. syntax-checker:: sql-sqlint
Check SQL syntax with `Sqlint <https://github.com/purcell/sqlint>`_.
.. supported-language:: systemd Unit Configuration
.. syntax-checker:: systemd-analyze
Check systemd unit configuration file syntax with `systemd-analyze`_.
.. _systemd-analyze: https://www.freedesktop.org/software/systemd/man/systemd-analyze.html
.. supported-language:: Text
.. syntax-checker:: proselint
Check text prose with `Proselint <http://proselint.com/>`_.
.. supported-language:: TeX/LaTeX
Flycheck checks TeX and LaTeX with either `tex-chktex` or `tex-lacheck`.
.. syntax-checker:: tex-chktex
Check style with `ChkTeX <http://www.nongnu.org/chktex/>`_.
.. syntax-checker-config-file:: flycheck-chktexrc
.. syntax-checker:: tex-lacheck
Check style with `Lacheck <http://www.ctan.org/pkg/lacheck>`_.
.. supported-language:: Texinfo
.. syntax-checker:: texinfo
Check syntax with :program:`makeinfo` from Texinfo_.
.. _Texinfo: http://www.gnu.org/software/texinfo/
.. supported-language:: TypeScript
.. syntax-checker:: typescript-tslint
Check syntax and style with `TSLint <https://github.com/palantir/tslint>`_.
.. syntax-checker-config-file:: flycheck-typescript-tslint-config
.. defcustom:: flycheck-typescript-tslint-rulesdir
Additional rules directory, for user created rules.
.. defcustom:: flycheck-tslint-args
A list of additional arguments that are passed to tslint.
.. supported-language:: Verilog
.. syntax-checker:: verilog-verilator
Check syntax with `Verilator <https://www.veripool.org/wiki/verilator>`_.
.. defcustom:: flycheck-verilator-include-path
A list of include directories. Relative paths are relative to the file
being checked.
.. supported-language:: XML
Flycheck checks XML with `xml-xmlstarlet` or `xml-xmllint`.
.. syntax-checker:: xml-xmlstarlet
Check syntax with `XMLStarlet <http://xmlstar.sourceforge.net>`_.
.. defcustom:: flycheck-xml-xmlstarlet-xsd-path
flycheck-xml-xmllint-xsd-path
Location of XSD schema to validate against for `xml-xmlstarlet` and
`xml-xmllint` respectively.
.. syntax-checker:: xml-xmllint
Check syntax with :program:`xmllint` from Libxml2_.
.. _Libxml2: http://www.xmlsoft.org/
.. supported-language:: YAML
Flycheck checks YAML with `yaml-jsyaml` or `yaml-ruby`.
.. syntax-checker:: yaml-jsyaml
Check syntax with `js-yaml <https://github.com/nodeca/js-yaml>`_.
.. syntax-checker:: yaml-ruby
Check syntax with Ruby's YAML parser.
|