flycheck-google-cpplint icon indicating copy to clipboard operation
flycheck-google-cpplint copied to clipboard

warnings-only is not a valid Flycheck error level

Open silgon opened this issue 10 years ago • 2 comments

I just installed flycheck-google-cpplint from the melpa packages and I get the following error:

flycheck-validate-next-checker: warnings-only is not a valid Flycheck error level

The important part of my configuration file is the next.

 (eval-after-load 'flycheck
   '(progn
       ;; Add Google C++ Style checker.
       ;; In default, syntax checked by Clang and Cppcheck.
       (flycheck-add-next-checker 'c/c++-clang
           '(warnings-only . c/c++-googlelint))))

Any ideas?

silgon avatar May 28 '15 11:05 silgon

Confirmed here, and I can't find a description of valid error levels.

xivarri avatar Jul 02 '15 10:07 xivarri

@xamvolagis error levels are defined in flymake.el if I understand right. It appears warning is the one you want.

(defcustom flycheck-navigation-minimum-level nil
  "The minimum level of errors to navigate.

If set to an error level, only navigate errors whose error level
is at least as severe as this one.  If nil, navigate all errors."
  :group 'flycheck
  :type '(radio (const :tag "All locations" nil)
                (const :tag "Informational messages" info)
                (const :tag "Warnings" warning)
                (const :tag "Errors" error)
                (symbol :tag "Custom error level"))
  :safe #'flycheck-error-level-p
  :package-version '(flycheck . "0.21"))

martinez avatar Jul 13 '15 08:07 martinez