An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Flycheck checker for PHP using [Noverify](https://github.com/VKCOM/noverify) linter

[![MELPA](https://melpa.org/packages/flycheck-php-noverify-badge.svg)](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"))
```