flycheck / flycheck-google-cpplint

Google C++ Style checker for Flycheck
GNU General Public License v3.0
42 stars 11 forks source link

warnings-only is not a valid Flycheck error level #6

Open silgon opened 9 years ago

silgon commented 9 years ago

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?

xivarri commented 9 years ago

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

martinez commented 8 years ago

@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"))