Questions tagged [flycheck]

Flycheck is an on-the-fly syntax checking package for GNU Emacs 24, with in-buffer error highlighting, automatic background checking, a dynamic error list, and built-in support for over 40 programming and markup languages.

Flycheck is an on-the-fly syntax checking package for GNU Emacs 24, replacing the built-in Flymake extension. It features in-buffer error highlights, automatic background checking, a dynamic error list, and a rich extension interface. It has built-in support for many programming and markup languages, including C/C++, Go, Haskell, JavaScript, PHP, Python, Ruby, LaTeX, Shell scripts, and many more, and can easily be extended for new languages.

It is available for installation via package.el from the popular MELPA and MELPA Stable archives.

For more information and comprehensive documentation please consult the online manual, which is also included in the Flycheck packages in the above archives for online reading in Emacs' info browser.

Please follow our Code of Conduct when posting under this tag.

216 questions
28
votes
3 answers

How to prevent flycheck from treating my init.el as a package file?

If flycheck-mode is enabled for my init.el, I got the following kinds of errors: The first line should be of the form: ";;; package --- Summary" (emacs-lisp-checkdoc) ... The footer should be: (provide 'init)\n;;; init.el ends here…
xuhdev
  • 1,899
  • 14
  • 31
25
votes
6 answers

Flycheck with file relative eslint executable

A lot of projects I work on install eslint as a dev dependency, with a custom set of eslint plugins. Right now, flycheck uses the globally installed version of eslint rather than the version of eslint installed with each project. I would like to…
pcardune
  • 353
  • 3
  • 6
9
votes
1 answer

Getting flycheck "jump to next/previous error" to cycle

I'd like M-g n and M-g p to cycle, at least when I'm using them with flycheck. This feature requires writing a custom function as it's not supported (as mentioned on https://github.com/flycheck/flycheck/issues/64 and confirmed in chat), but I am an…
Blaisorblade
  • 271
  • 1
  • 11
9
votes
1 answer

Best way to disable flycheck checkdoc warnings on specific elisp directory?

I use flycheck with flycheck-elisp-checkdoc checker active and find them fairly useful. Still, I find it irritating to be nagged about missing (provide), section headers (;;; Code, ...), package metadata and similar things while I am editing my…
Mekk
  • 1,047
  • 7
  • 14
6
votes
1 answer

flycheck cannot find module for pylint

I have installed flycheck and pylint and want to use pylint for python mode, but when selecting syntax checker with flycheck I get this: python-pylint (disabled) - major mode: `python-mode' supported - may enable: …
Lars Nielsen
  • 215
  • 4
  • 9
6
votes
1 answer

flycheck hides compilation errors

I use Emacs to edit Go files. When I compile them I can use next-error to jump to the next error in a specific Go file. Very handy. However, when I also enable flycheck on my Go file for on-the-fly syntax checking, it somehow conflicts with the…
Lajos Nagy
  • 163
  • 3
5
votes
1 answer

Flycheck: change color / thickness of underline

Using Flycheck, I get a green thin jagged underline line for style-guide violations, and a red thin jagged underline for syntax errors (see below). Is it possible to change the thickness or the color of the line? Namely, I'd like the red to be more…
WickedJargon
  • 448
  • 2
  • 14
5
votes
2 answers

Why does my Flycheck syntax checker not activate automatically?

I wrote a Flycheck frontend for LDC. It installs into Emacs fine, and I remember to require it, but for some reason, it doesn't automatically enable itself when I open a file in d-mode. What did I miss? Edit: As per request, here are the relevant…
Koz Ross
  • 425
  • 3
  • 13
4
votes
1 answer

Is there a way in Flycheck flake8 mode to ignore a specific warning?

As we all know sometimes it's OK to break the rules. Flycheck Mode however, isn't as forgiving and happily displays it's warning. Is there a way to disable this on a per line basis when using flake8? For example: Adding a comment # fc:ignore on the…
Bagee
  • 123
  • 1
  • 7
4
votes
1 answer

Warning (flycheck): Syntax checker javascript-eslint reported too many errors (494) and is disable

I switched to a new linter and on big files it causes flycheck to disable because it reports too many errors. I don't believe this is an issue with the linter as when I check the output in the terminal it seems to be legitimate flags. How can I…
user2522280
  • 929
  • 2
  • 7
  • 13
3
votes
1 answer

Flycheck - Eslint: 'config file: missing or incorrect'

After following the installation instructions I received this error: javascript-eslint (disabled) - may enable: Automatically disabled! - executable: Found at /Users/ben/programming/eslint_test/node_modules/eslint/bin/eslint.js -…
Ben.krck
  • 31
  • 1
3
votes
1 answer

Have flycheck skip certain regions

I'm using flycheck to check my .tex sources but find that the syntax checking is too comprehensive. In particular, I'm interested in skipping syntax checking of certain environments such as code listings. So essentially, I'd need to some way to tell…
3
votes
2 answers

Tell Flycheck about my global variables across multiple files?

I've just started to use Flycheck to improve the quality of my code, and I am grateful that it is helping me to do that by pointing out assignments to free variables, and by identifying possibly undefined functions on the last line of the error…
Kevin
  • 1,318
  • 8
  • 21
2
votes
2 answers

When using flycheck, how to permanently disable pylint?

I'm using Doom Emacs on macOS, if it matters. Essentially, I'd like to disable the pylint checker entirely when editing Python files. I don't use pylint, and I don't have it installed in my Pyenv environments; it gives me false positives. But I'm…
2
votes
0 answers

Is there any way to supress or prevent python-mypy `Suspicious state` message

When I open an empty Python file I get following warning message in the minibuffer. I added following into my init file: (require 'flycheck-mypy) // Flycheck version: 32snapshot (package: 20200610.1809) Suspicious state from syntax checker…
alper
  • 1,370
  • 1
  • 13
  • 35
1
2 3 4