Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

PHP CodeSniffer for Emacs with flymake

Notifications You must be signed in to change notification settings

flymake/flymake-phpcs

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: I recommend that you use the flycheck. Because, you can run the checker more than one. Of course, including phpcs.

License: GPL v3 MELPA MELPA Stable

flymake-phpcs.el

CI

PHP CodeSniffer for Emacs with flymake-mode.

To use PHP CodeSniffer with Emacs, you will need PHP CodeSniffer installed.

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
 '(flymake-phpcs-standard "PSR2"))

or

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

phpcs command location

By default, the location of the phpcs command is searched.

(custom-set-variables
 '(flymake-phpcs-command "/path/to/phpcs"))

Where to create temporary copy

one of 'tempdir or 'inplace (default).

(custom-set-variables
 '(flymake-phpcs-location 'tempdir))

About

PHP CodeSniffer for Emacs with flymake

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.