Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
silgon opened this issue May 28, 2015 · 2 comments
Open

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

silgon opened this issue May 28, 2015 · 2 comments

Comments

@silgon
Copy link

silgon commented May 28, 2015

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
Copy link

xivarri commented Jul 2, 2015

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

@martinez
Copy link

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

Claymore added a commit to Claymore/flycheck-google-cpplint that referenced this issue Mar 11, 2016
Use `'warning` as a flycheck level.

Fixes flycheck#5 and flycheck#6.
Claymore added a commit to Claymore/flycheck-google-cpplint that referenced this issue Mar 11, 2016
Use 'warning as a flycheck level instead of the outdated 'warnings-only.

Fixes flycheck#5 and flycheck#6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants