forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeSniffer MDL-19247 I updated the README, moved and renamed phpcs =…
…> runsniffer script, and modifed some rules for line length and require statements
- Loading branch information
moodler
committed
May 20, 2009
1 parent
8559ea1
commit e624cda
Showing
4 changed files
with
33 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
#!/usr/bin/php | ||
<?php | ||
/** | ||
* PHP_CodeSniffer tokenises PHP code and detects violations of a | ||
* defined set of coding standards. | ||
* This script will run PHP CodeSniffer across given Moodle directories and | ||
* produce reports of coding standard violations. | ||
* | ||
* PHP version 5 | ||
* HOW TO USE: | ||
* php lib/pear/PHP/runsniffer mod/forum | ||
* | ||
* @category PHP | ||
* @package PHP_CodeSniffer | ||
* @author Greg Sherwood <[email protected]> | ||
* @author Marc McIntyre <[email protected]> | ||
* @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence | ||
* @version CVS: $Id$ | ||
* @link http://pear.php.net/package/PHP_CodeSniffer | ||
*/ | ||
|
||
error_reporting(E_ALL | E_STRICT); | ||
|
||
if (is_file(dirname(__FILE__).'/../CodeSniffer/CLI.php') === true) { | ||
include_once dirname(__FILE__).'/../CodeSniffer/CLI.php'; | ||
if (is_file(dirname(__FILE__).'/CodeSniffer/CLI.php') === true) { | ||
include_once dirname(__FILE__).'/CodeSniffer/CLI.php'; | ||
} else { | ||
include_once 'lib/pear/PHP/CodeSniffer/CLI.php'; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters