http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88624
Revision: 88624
Author: platonides
Date: 2011-05-22 23:52:07 +0000 (Sun, 22 May 2011)
Log Message:
-----------
/* comments that should be /** heuristic.
Modified Paths:
--------------
trunk/tools/code-utils/check-vars.php
Modified: trunk/tools/code-utils/check-vars.php
===================================================================
--- trunk/tools/code-utils/check-vars.php 2011-05-22 23:36:17 UTC (rev
88623)
+++ trunk/tools/code-utils/check-vars.php 2011-05-22 23:52:07 UTC (rev
88624)
@@ -322,6 +322,13 @@
if ( $token == ';' )
$this->mFunctionQualifiers =
array();
+ if ( $token[0] == T_COMMENT ) {
+ if ( substr( $token[1], 0, 2 )
== '/*' && substr( $token[1], 0, 3 ) != '/**'
+ && preg_match(
'/^\s+\*(?!\/)/m', $token[1] ) && strpos( $token[1], "\$separatorTransformTable
= array( ',' => '' )" ) === false ) {
+ $this->warning(
"Multiline comment with /* in line $token[2]" );
+ }
+ }
+
if ( $token[0] == T_DOC_COMMENT ) {
if ( strpos( $token[1],
'@deprecated' ) !== false ) {
$this->mFunctionQualifiers[] = self::FUNCTION_DEPRECATED;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs