[Fb-contrib-commit] SF.net SVN: fb-contrib:[1224] trunk/fb-contrib/etc/messages.xml
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2009-07-28 07:10:00
|
Revision: 1224
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1224&view=rev
Author: dbrosius
Date: 2009-07-28 07:09:51 +0000 (Tue, 28 Jul 2009)
Log Message:
-----------
add ITU
Modified Paths:
--------------
trunk/fb-contrib/etc/messages.xml
Modified: trunk/fb-contrib/etc/messages.xml
===================================================================
--- trunk/fb-contrib/etc/messages.xml 2009-07-28 05:59:24 UTC (rev 1223)
+++ trunk/fb-contrib/etc/messages.xml 2009-07-28 07:09:51 UTC (rev 1224)
@@ -991,6 +991,17 @@
]]>
</Details>
</Detector>
+
+ <Detector class="com.mebigfatguy.fbcontrib.detect.InappropriateToStringUse">
+ <Details>
+ <![CDATA[
+ <p>looks for methods that perform algorithmic operations on Strings that are returned
+ from a toString() method. As toString should only be used for debug/trace purposes, it
+ shouldn't be used for algorithm use.</p>
+ <p>It is a fast detector</p>
+ ]]>
+ </Details>
+ </Detector>
<!-- BugPattern -->
@@ -2590,6 +2601,17 @@
</Details>
</BugPattern>
+ <BugPattern type="ITU_INAPPROPRIATE_TOSTRING_USE">
+ <ShortDescription>method performs algorithmic operations on the result of a toString() call</ShortDescription>
+ <LongDescription>method performs algorithmic operations on the result of a toString() call</LongDescription>
+ <Details>
+ <![CDATA[
+ <p>This method calls algorithmic operations on a String that was returned from a toString() method.
+ As these methods are for debugging/logging purposes, it shouldn't be the basis of core logic in your code.
+ ]]>
+ </Details>
+ </BugPattern>
+
<!-- BugCode -->
<BugCode abbrev="ISB">Inefficient String Buffering</BugCode>
@@ -2673,4 +2695,5 @@
<BugCode abbrev="SMA">Stuttered Method Arguments</BugCode>
<BugCode abbrev="TBP">Tristate Boolean Pattern</BugCode>
<BugCode abbrev="SUA">SuspiciousUninitializedArray</BugCode>
+ <BugCode abbrev="ITU">Inappropriate ToString Use</BugCode>
</MessageCollection>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|