-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add basic codesniffer coding standard
- Loading branch information
Showing
1 changed file
with
66 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php | ||
/** | ||
* KingKludge Coding Standard. | ||
* | ||
* PHP version 5 | ||
* | ||
* @category PHP | ||
* @package PHP_CodeSniffer_Yahoo | ||
* @author Andy 'Bob' Brockhurst <[email protected]> | ||
* @version $Id: YahooCodingStandard.php,v 1.5 2008/12/18 14:53:39 abrock Exp $ | ||
*/ | ||
|
||
if (class_exists('PHP_CodeSniffer_Standards_CodingStandard', true) === false) { | ||
throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_Standards_CodingStandard not found'); | ||
} | ||
|
||
/** | ||
* KingKludge Coding Standard. | ||
* | ||
* @category PHP | ||
* @package PHP_CodeSniffer_Yahoo | ||
* @author Andy 'Bob' Brockhurst <[email protected]> | ||
*/ | ||
class PHP_CodeSniffer_Standards_KingKludge_KingKludgeCodingStandard extends PHP_CodeSniffer_Standards_CodingStandard | ||
{ | ||
|
||
|
||
/** | ||
* Return a list of external sniffs to include with this standard. | ||
* | ||
* The MySource standard is an extension of the Squiz standard, with | ||
* specific tests for the MySource CMS, so include the whole Squiz standard. | ||
* | ||
* @return array | ||
*/ | ||
public function getIncludedSniffs() | ||
{ | ||
return array( | ||
'Generic/Sniffs/PHP/DisallowShortOpenTagSniff.php', | ||
'Generic/Sniffs/PHP/NoSilencedErrorsSniff.php', | ||
'PEAR/Sniffs/Files/IncludingFileSniff.php', | ||
'PEAR/Sniffs/Files/LineEndingsSniff.php', | ||
'Squiz/Sniffs/Operators/ValidLogicalOperatorsSniff.php', | ||
'Squiz/Sniffs/PHP/EvalSniff.php', | ||
); | ||
|
||
}//end getIncludedSniffs() | ||
|
||
/** | ||
* Return a list of external sniffs to exclude from this standard. | ||
* | ||
* The PHP_CodeSniffer standard combines the PEAR and Squiz standards | ||
* but removes some sniffs from the Squiz standard that clash with | ||
* those in the PEAR standard. | ||
* | ||
* @return array | ||
*/ | ||
public function getExcludedSniffs() | ||
{ | ||
return array( | ||
); | ||
|
||
}//end getExcludedSniffs() | ||
|
||
}//end class | ||
?> |