https://github.com/junker/flycheck-php-noverify
Flycheck checker for PHP using Noverify linter
https://github.com/junker/flycheck-php-noverify
emacs flycheck noverify php
Last synced: 12 months ago
JSON representation
Flycheck checker for PHP using Noverify linter
- Host: GitHub
- URL: https://github.com/junker/flycheck-php-noverify
- Owner: Junker
- License: gpl-3.0
- Created: 2021-09-28T09:57:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-18T15:16:30.000Z (over 4 years ago)
- Last Synced: 2025-01-01T01:45:34.978Z (over 1 year ago)
- Topics: emacs, flycheck, noverify, php
- Language: Emacs Lisp
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flycheck checker for PHP using [Noverify](https://github.com/VKCOM/noverify) linter
[](https://melpa.org/#/flycheck-php-noverify)
Fast PHP linter for Flycheck.
Noverify - Pretty fast linter (code static analysis utility) for PHP
## Requirements
Installed [NoVerify](https://github.com/VKCOM/noverify) linter.
## Installation
From MELPA:
```
M-x package-install flycheck-php-noverify
```
For `use-package` user:
```elisp
(use-package flycheck-php-noverify
:ensure t
:config
(progn
(flycheck-php-noverify-setup)))
```
## Configuration
```elisp
;; 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"))
```