Flycheck-Google-Cpplint not configured correctly

I am trying to install flycheck-google-cpplint in my emacs. But I get this error:

(flycheck-mode 1)
(eval-after-load 'flycheck
  '(progn
     (require 'flycheck-google-cpplint)
     (flycheck-add-next-checker 'c/c++-cppcheck
                              'c/c++-googlelint 'append)))
(custom-set-variables
   '(flycheck-googlelint-verbose "3")
   '(flycheck-googlelint-filter "-whitespace,+whitespace/braces"))

But that does not work. I get the following error:

Error: (user-error "Configured syntax checker c/c++-googlelint cannot be used") 

I do not know why. I installed cpplint and it works fine if I used it from the command line. Any suggestion?

+4
source share
1 answer

flycheck-google-lint uses cpplint. You must tell emacs where to find the cpplint.py executable to perform syntax checking.

You can find the cpplint file here .

Then you need to add this to the emacs init file:

(custom-set-variables
 '(flycheck-c/c++-googlelint-executable "/path/to/cpplint.py"))
+3
source

Source: https://habr.com/ru/post/1533098/


All Articles