Menu

[r236]: / trunk / RELEASE_NOTES.txt  Maximize  Restore  History

Download this file

258 lines (201 with data), 8.8 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
PHPCheckstyle Release Notes
===========================
Version 0.12.3
--------------
* Issue 52: Config for PHP frameworks
* Issue 54: detect empty files
Version 0.12.2
--------------
* Issue 53: else/ elseif without curly braces (thanks to Maximilian Pachl)
* Added a check of the curly braces after a "else" statement
Version 0.12.1
--------------
* Issue 50 : --exclude flag is not honoured
* No space expected after '=' when used in assignation by reference
Version 0.12.0
--------------
* New reporter : xml_console (for use with Netbeans plugin : http://sourceforge.net/projects/phpmdnb/), thanks to Jens Radtke
* Issue 47 : False docBlock error when using empty return in a method
* Added the version number in the run.php file
Version 0.11.0
--------------
* Issue 1 : Refactoring of the code
* Issue 43: False positive for "The function throws an exception"
* Issue 41: False positive : The statement 'while' must contain its code within a {} block.
* Issue 24: Line length checking of non-PHP code should be toggleable in a config option.
* Added Zend Framework style configuration file
Version 0.10.6
--------------
* Issue 40: Propose replacement for PHP aliases
* Now generates absolute file path in the reports (allow Jenkins to display the source code)
Version 0.10.5
--------------
* Issue 39: Error on closing tag for space-based indentation checks
* Issue 38: False positive for : The function XXX must have a docblock comment
Version 0.10.4
--------------
* Issue 37: Web interface (currently very limited)
Version 0.10.3
--------------
* Issue 35: New Rule : Use of "==" in strpos
* Bug correction: Not correctly counting the end of a stack item after a "ELSE IF"
Version 0.10.2
--------------
* issue 27 : Unused code is wrongly detected
* issue 26 : Empty lines in comments will corrupt line numbering
* issue 25 : Error: Notice: Trying to get property of non-object
* issue 23 : Wrong indentation level for curly braces on new line
* Embedding of CSS inside HTML Header
* Fix for null pointer exceptions when run against newer code
Version 0.10.1
--------------
* Fixed Rule encapsedVariablesInsideString : False positive when using heredoc
* Rule needBraces : False positive for do/while
Version 0.10.0
--------------
* Added support for interfaces
* Improved checking of variables by scope
* Rewrote the _checkLargeLine() function
* Added rudimentary progress reporting, invoked with the parameter --progress
* Edited Style errors for clarity
* Included regex in the error report for appropriate types
* Errors are now described in much greater detail and more consistent language
* Removed 'old : ' and 'new : ' prefixes from constructor name hints
* New output type - html console
* Removed "controlStructNeedCurly" rule, duplicate with "needBraces" rule
* Completed the test cases
* The tokenizer now returns T_TAB separately from T_WHITESPACE
Thanks a lot to Justin Creasey and Adam King
Version 0.9.8
-------------
* Issue 3: Check for unreachable code
Version 0.9.7
-------------
* Deprecation of long $HTTP_*_VARS predefined variables
* Configuration of system variables lists
* Issue 10: Don't blindly remove first 2 chars of file path
Version 0.9.6
-------------
* Corrected the inner assignement rule (wasn't detecting the end of a control statement if no brackets).
* Corrected the file exclusion list.
* Corrected a bug with nextToken at the end of a file.
* Added the possibility to add exceptions to the checkVariableNaming rule
Version 0.9.5
-------------
* Corrected a bug with @SuppressWarnings on a class.
Version 0.9.4
-------------
* Add __invoke and __callStatic to the special functions.
Version 0.9.3
-------------
* Refactoring of the indentation check (thanks to Charles Marion). The "noTabs" rule is replaced by the "indentation" rule.
* Reactivation of the "noSpaceAfterControlStmt" rule.
* Correction of a bug with multiple output files.
* Added a rule for the naming of protected functions.
Version 0.9.2
-------------
* Multiple output files (separated by a comma in the --format command line parameter)
Version 0.9.1
-------------
* Possibility to scan multiple source directories (separated by a comma in the --src command line parameter)
Version 0.9
-------------
* Dependency on lib_xsl removed
* Documentation updated to link to the new project home (http://code.google.com/p/phpcheckstyle/)
* HTML Report validated with W3C validator, HTML characters escaped
* Possibility to suppress some warnings using annotations before a class or a function in the code (@SuppressWarnings)
* New logo
Version 0.8.11
-------------
* Refactoring : Added the current stack of instruction to provide contextual information
* New test : unusedCode
* New test : deprecated functions
Version 0.8.10
-------------
* Corrected JavaNCSS count of packages
* New test : functionInsideLoop
Version 0.8.9
-------------
* Corrected LevelOfNesting calculation
* New test : oneClassPerFile
Version 0.8.8
-------------
* New test : variableNaming
* Added the possibility to configure the regular expressions for the naming rules
* A taste of it's own dog food
Version 0.8.7
-------------
* New test : checkUnusedVariables
* New test : checkUnusedFunctionParameters
Version 0.8.6
-------------
* Correction in the controlStructOpenCurly check.
Version 0.8.5
-------------
* New test : empty statement (;;)
* New test : inner assignment
* New test : unused private functions
Version 0.8.4
-------------
* Refactored the whiteSpaceBore / noSpaceBefore / whiteSpaceAfter / noSpaceAfter methods.
* Refactored peekNextValidToken and peekPrvsValidToken to avoid using call by reference
* New test : function length
* New test : empty block (if ($a) {} )
* New test : avoid heredoc
* New test : excessive function parameters
* New test : need braces
* New tests : switch have a default and default is at the end
* New test : switch case should have a break
Version 0.8.3
-------------
* Added some tests on the docbloc (@param and @return)
* Added a test on unary operators
* Corrected a bug in the detection of the end of a function
Version 0.8.2
-------------
* Added new test (Use boolean operators instead of logical operators)
Version 0.8.1
-------------
* Corrected a bug with NEW_LINE caracter inside a constant string
Version 0.8
-----------
* Replaced the token_get_all() function by token_get_all_nl() found here : http://php.net/manual/fr/function.token-get-all.php
This function returns the new line caracters as a token. This solve some problems and impact a lot of code.
* Added the possibility to generate a report on the number of lines of code compatible with the JavaNCSS format (http://kclee.de/clemens/java/javancss/)
* Added new tests (Extract TODOs, Avoid passing references)
* Some refactoring
Version 0.7.1
-------------
* Added new tests (Cyclomatic Complexity, ...)
Version 0.7
-----------
* All tests are now configurable
* Included siome propositions from the forum
* Added the possibility to define a severity level for each test rule
* Ignoring the .svn repositories
* Changed the XML outpout in order to be compatible with the checkstyle format (http://checkstyle.sourceforge.net/)
Version 0.6.1
-------------
* Bugs Fixes
* HTML Ouput changes
Version 0.6
-----------
This is the very first release of Spike PHPCheckstyle. It is an alpha release.
* Known Issues
1. Indentation: The tools checks only for existence of tabs in a line. It
does not check that every line follows the 4 space indentation rule.
2. Issue with do/while loop: The tool generates wrong errors when a do/while
loop contains a while loop or another do/while loop.
3. Global variable nameing: Global variable naming convention checks are
not implemented.
4. Docblocks: The tool currently checks only for the existence of docblocks
but not for all the required elements within it.
5. Issue: when a cpp comment (starting with //) is followed by "}" in the
next line, reports that the "}" should be on a new line (even though it
is on a new line).
6. Expects the configuration file to be {install-dir}/config/pear.cfg.xml.
Can not change it.
7. Some of the tests are not configurable (that is, they are checked, but can not
disable them). They are: "spaceAfterControlStmt", "spaceAfterSemicolon",
"noSpaceAfterFuncCall" and "spaceAfterFuncNameDefn". (Refer documentation
for more details on configurations).
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.