Synchronization with PHP_CodeSniffer (Php)

PHP_CodeSniffer is a parser for PHP code.

Embedded analysis in Themis

To devolve to Themis the anaysis of your PHP code to PHP_CodeSniffer, you should configure first the embedded linters for your source. You have to then add a sub-plugin for PHP_CodeSniffer.

You may configure the standard of coding to use for PHP_CodeSniffer (see that link for more explainations). You may indicate as much standards as you wish, separated by commas (,). The listing of standards available is indicated in the table below. 

Informations and installed versions

Website: https://github.com/squizlabs/PHP_CodeSniffer

Extensions of analyzed files: .php, .inc.

Version of Themis Version of PHP_CodeSniffer Standards of coding
2.6.0

3.3.2

MySource, Zend, PEAR, PSR1, PHPCS, Squiz, PSR2

1.0.4

2.8.0

MySource, Zend, PEAR, PSR1, PHPCS, Squiz, PSR2

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.