Skip to content

Commit b5d8e64

Browse files
committed
Prepare for 2.0.0 release
1 parent 1ef8e16 commit b5d8e64

File tree

2 files changed

+81
-8
lines changed

2 files changed

+81
-8
lines changed

CodeSniffer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ class PHP_CodeSniffer
7373
*
7474
* @var string
7575
*/
76-
const VERSION = '2.0.0RC5';
76+
const VERSION = '2.0.0';
7777

7878
/**
7979
* Package stability; either stable, beta or alpha.
8080
*
8181
* @var string
8282
*/
83-
const STABILITY = 'beta';
83+
const STABILITY = 'stable';
8484

8585
/**
8686
* The file or directory that is currently being processed.

package.xml

Lines changed: 79 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ http://pear.php.net/dtd/package-2.0.xsd">
1414
<email>[email protected]</email>
1515
<active>yes</active>
1616
</lead>
17-
<date>2014-11-07</date>
18-
<time>08:18:00</time>
17+
<date>2014-12-05</date>
18+
<time>09:52:00</time>
1919
<version>
20-
<release>2.0.0RC5</release>
21-
<api>2.0.0RC5</api>
20+
<release>2.0.0</release>
21+
<api>2.0.0</api>
2222
</version>
2323
<stability>
24-
<release>beta</release>
25-
<api>beta</api>
24+
<release>stable</release>
25+
<api>stable</api>
2626
</stability>
2727
<license uri="https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt">BSD 3-Clause License</license>
2828
<notes>
@@ -2314,6 +2314,49 @@ http://pear.php.net/dtd/package-2.0.xsd">
23142314
</filelist>
23152315
</phprelease>
23162316
<changelog>
2317+
<release>
2318+
<version>
2319+
<release>2.0.0</release>
2320+
<api>2.0.0</api>
2321+
</version>
2322+
<stability>
2323+
<release>stable</release>
2324+
<api>stable</api>
2325+
</stability>
2326+
<date>2014-12-05</date>
2327+
<license uri="https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt">BSD License</license>
2328+
<notes>
2329+
- JS tokenizer now sets functions as T_CLOSUREs if the function is anonymous
2330+
- JS tokenizer now sets all objects to T_OBJECT
2331+
-- Object end braces are set to a new token T_CLOSE_OBJECT
2332+
-- T_OBJECT tokens no longer act like scopes; i.e., they have no condition/opener/closer
2333+
-- T_PROPERTY tokens no longer act like scopes; i.e., they have no condition/opener/closer
2334+
-- T_OBJECT tokens have a bracket_closer instead, which can be used to find the ending
2335+
-- T_CLOSE_OBJECT tokens have a bracket_opener
2336+
- Improved regular expression detection in the JS tokenizer
2337+
- You can now get PHP_CodeSniffer to ignore a single line by putting @codingStandardsIgnoreLine in a comment
2338+
-- When the comment is found, the comment line and the following line will be ignored
2339+
-- Thanks to Andy Bulford for the contribution
2340+
- PHPCBF now prints output when it is changing into directories
2341+
- Improved conflict detection during auto fixing
2342+
- The -vvv command line argument will now output the current file content for each loop during fixing
2343+
- Generic ScopeIndentSniff now checks that open/close PHP tags are aligned to the correct column
2344+
- PEAR FunctionCallSignatureSniff now checks indent of closing parenthesis even if it is not on a line by itself
2345+
- PEAR FunctionCallSignatureSniff now supports JS files
2346+
- PEAR MultiLineConditionSniff now supports JS files
2347+
- Squiz DocCommentAlignmentSniff now supports JS files
2348+
- Fixed a problem correcting the closing brace line in Squiz ArrayDeclarationSniff
2349+
- Fixed a problem auto-fixing the Squiz.WhiteSpace.FunctionClosingBraceSpace.SpacingBeforeNestedClose error
2350+
- Squiz EmbeddedPhpSniff no longer reports incorrect alignment of tags when they are not on new lines
2351+
- Squiz EmbeddedPhpSniff now aligns open tags correctly when moving them onto a new line
2352+
- Improved fixing of arrays with multiple values in Squiz ArrayDeclarationSniff
2353+
- Improved detection of function comments in Squiz FunctionCommentSpacingSniff
2354+
- Improved fixing of lines after cases statements in Squiz SwitchDeclarationSniff
2355+
- Fixed bug #311 : Suppression of function prototype breaks checking of lines within function
2356+
- Fixed bug #320 : Code sniffer identation issue
2357+
- Fixed bug #333 : Nested ternary operators causing problems
2358+
</notes>
2359+
</release>
23172360
<release>
23182361
<version>
23192362
<release>2.0.0RC4</release>
@@ -2658,6 +2701,36 @@ http://pear.php.net/dtd/package-2.0.xsd">
26582701
- Removed MySource ChannelExceptionSniff
26592702
</notes>
26602703
</release>
2704+
<release>
2705+
<version>
2706+
<release>1.5.6</release>
2707+
<api>1.5.6</api>
2708+
</version>
2709+
<stability>
2710+
<release>stable</release>
2711+
<api>stable</api>
2712+
</stability>
2713+
<date>2014-12-05</date>
2714+
<license uri="https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt">BSD License</license>
2715+
<notes>
2716+
- JS tokenizer now detects xor statements correctly
2717+
- The --config-show command now pretty-prints the config values
2718+
-- Thanks to Ken Guest for the patch
2719+
- Setting and removing config values now catches exceptions if the config file is not writable
2720+
-- Thanks to Ken Guest for the patch
2721+
- Setting and removing config values now prints a message to confirm the action and show old values
2722+
- You can now get PHP_CodeSniffer to ignore a single line by putting @codingStandardsIgnoreLine in a comment
2723+
-- When the comment is found, the comment line and the following line will be ignored
2724+
-- Thanks to Andy Bulford for the contribution
2725+
- Generic ConstructorNameSniff no longer errors for PHP4 style constructors when __construct() is present
2726+
-- Thanks to Thibaud Fabre for the patch
2727+
- Fixed bug #280 : The --config-show option generates error when there is no config file
2728+
- Fixed bug #306 : File containing only a namespace declaration raises undefined index notice
2729+
- Fixed bug #308 : Squiz InlineIfDeclarationSniff fails on ternary operators inside closure
2730+
- Fixed bug #310 : Variadics not recognized by tokenizer
2731+
- Fixed bug #311 : Suppression of function prototype breaks checking of lines within function
2732+
</notes>
2733+
</release>
26612734
<release>
26622735
<version>
26632736
<release>1.5.5</release>

0 commit comments

Comments
 (0)