Doc #19734 [Opn->Csd]: All files scanned by default
| From: | gsherwood at squiz dot net | Date: | Mon, 17 Dec 2012 10:31:52 +0000 |
| Subject: | Doc #19734 [Opn->Csd]: All files scanned by default | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9422@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19734&edit=1
ID: 19734
Updated by: gsherwood@squiz.net
Reported By: peter at mapledesign dot co dot uk
Summary: All files scanned by default
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: PHP_CodeSniffer
Package Version: 1.4.3
PHP Version: 5.3.10
-Assigned To:
+Assigned To: squiz
Roadmap Versions:
New Comment:
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: squiz
You are very correct, and I noticed the incorrect statement as well
while I have been
migrating my docs away from PEAR and into the Github wiki.
The current outdated PEAR docs is here:
https://pear.php.net/manual/en/package.php.php-codesniffer.advanced-usage.php
The corrected doc is here:
https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage
I have not finished the migration yet, but I will turn off the PEAR docs
once I have
completed it.
Previous Comments:
------------------------------------------------------------------------
[2012-12-07 10:10:09] reywob
Description:
------------
The documentation says:
"By default, PHP_CodeSniffer will check any file it finds with a .inc
or .php extension."
However I found mine scanned .js and .css files - and this is a
clean install.
Test script:
---------------
phpcs --standard=PEAR -p -v
--ignore=lib/MPDF55/*,lib/PHPExcel/*,lib/swiftmailer/* .
Expected result:
----------------
Only .php files scanned
Actual result:
--------------
Changing into directory /my/path/themes/base/css
Processing reset-fonts.css [359 tokens in 8 lines]... DONE in <
1 second (0 errors, 0 warnings)
Processing reset-min.css [269 tokens in 8 lines]... DONE in <
1 second (0 errors, 0 warnings)
Processing reset.css [475 tokens in 144 lines]... DONE in < 1
second (25 errors, 0 warnings)
Changing into directory /my/path/themes/base/js/colorbox
Processing 1.3.1 jquery.colorbox-min.js [3831 tokens in 2
lines]... DONE in 1 second (0 errors, 0 warnings)
Processing colorbox.css [1060 tokens in 63 lines]... DONE in <
1 second (0 errors, 0 warnings)
Processing jquery.colorbox-min.js [3893 tokens in 2 lines]...
DONE in 1 second (0 errors, 14 warnings)
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19734&edit=1