Thanks to visit codestin.com
Credit goes to github.com

Skip to content

arnested/flymake-phpcs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

flymake-phpcs.el

PHP CodeSniffer for Emacs with flymake-mode.

To use PHP CodeSniffer with Emacs, you will need PHP CodeSniffer installed and available on your path.

You should be able to run

$ phpcs

and, you'll also need to install flymake-easy.

Usage

You'll need to add the directory containing flymake-phpcs.el to your load-path.

If not, also add to your config

(add-to-list 'load-path "~/.emacs.d/path/to/flymake-phpcs.el")

Add to your Emacs config

(require 'flymake-phpcs)
(add-hook 'php-mode-hook 'flymake-phpcs-load)

How to customize the Coding Standard

(custom-set-variables
 '(phpcs-coding-standard "PSR2"))

or

(custom-set-variables
 '(phpcs-coding-standard "/path/to/MyStandard"))

About

PHP CodeSniffer for Emacs with flymake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%