Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.08 KB

File metadata and controls

47 lines (32 loc) · 1.08 KB

Flycheck checker for PHP using Noverify linter

MELPA

Fast PHP linter for Flycheck.

Noverify - Pretty fast linter (code static analysis utility) for PHP

Requirements

Installed NoVerify linter.

Installation

From MELPA:

M-x package-install flycheck-php-noverify

For use-package user:

(use-package flycheck-php-noverify
  :ensure t
  :config
  (progn
    (flycheck-php-noverify-setup)))

Configuration

;; Excluded checks. 
;; default: '("undefinedConstant" "undefinedClass" "undefinedFunction" 
;;            "undefinedMethod" "undefinedProperty" "undefinedTrait")
(add-to-list 'flycheck-php-noverify-exclude-checks "constCase")

;; Allowed checks. default: nil
(setq flycheck-php-noverify-allow-checks '("unused"))

;; Analyze as PHP 7. default: nil
(setq flycheck-php-noverify-php7 t)

;; additional 'noverify' args
(setq flycheck-php-noverify-args '("--cores" "4"))