Skip to content

Instantly share code, notes, and snippets.

@wngreene
Created May 10, 2016 19:28
Show Gist options
  • Save wngreene/f600b43ad086d964b2d00bc7e5912dc1 to your computer and use it in GitHub Desktop.
Save wngreene/f600b43ad086d964b2d00bc7e5912dc1 to your computer and use it in GitHub Desktop.
;; Flycheck.
(use-package flycheck
:ensure t
:config (progn (add-hook 'after-init-hook #'global-flycheck-mode)
(add-hook 'python-mode-hook (lambda ()
(flycheck-select-checker 'python-pylint)))
(setq-default flycheck-disabled-checkers '(c/c++-clang c/c++-gcc))))
;; Flycheck Google cpplint
(use-package flycheck-google-cpplint
:ensure t
:config (progn (setq flycheck-googlelint-verbose "3")
(setq flycheck-c/c++-googlelint-executable "cpplint")
;; (setq flycheck-googlelint-root "src")
(setq flycheck-googlelint-linelength "80")
(flycheck-add-next-checker 'c/c++-cppcheck
'(warning . c/c++-googlelint))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment