Skip to content

Commit

Permalink
The existence of the main config file is now cached to reduce is_file…
Browse files Browse the repository at this point in the history
…() calls when it doesn't exist (request squizlabs#486)
  • Loading branch information
gsherwood committed Feb 10, 2015
1 parent 9b5c897 commit 5cddfb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CodeSniffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2349,6 +2349,7 @@ public static function getAllConfigData()
}

if (is_file($configFile) === false) {
$GLOBALS['PHP_CODESNIFFER_CONFIG_DATA'] = array();
return array();
}

Expand Down
1 change: 1 addition & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
</stability>
<license uri="https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt">BSD 3-Clause License</license>
<notes>
- The existence of the main config file is now cached to reduce is_file() calls when it doesn't exist (request #486)
- PEAR and Squiz FileComment sniffs no longer have @ in their error codes
-- E.g., PEAR.Commenting.FileComment.Duplicate@categoryTag becomes PEAR.Commenting.FileComment.DuplicateCategoryTag
-- E.g., Squiz.Commenting.FileComment.Missing@categoryTag becomes Squiz.Commenting.FileComment.MissingCategoryTag
Expand Down

0 comments on commit 5cddfb3

Please sign in to comment.