简体   繁体   中英

How to use PHP_CodeSniffer with XAMPP?

I am running XAMPP with windows XP. I just download PHP_CodeSniffer and cannot figure out how to run it.

Thank you

The documentation has it all.

EDIT:

The first line of phpcs is:

#!@php_bin@

you need to replace @php_bin@ with correct path to php to make a meaningful shebang as(In linux):

#!/usr/bin/php

Since windows does not have the concept of shebang, you can delete the first line of phpcs and then run it as:

C:\>path\to\php\bin\php.exe path\to\phpcs path\to\file\to\analyze

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM