[Fb-contrib-commit] SF.net SVN: fb-contrib:[1293] trunk/fb-contrib/etc/messages.xml
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2009-09-24 03:50:07
|
Revision: 1293
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1293&view=rev
Author: dbrosius
Date: 2009-09-24 03:49:58 +0000 (Thu, 24 Sep 2009)
Log Message:
-----------
add IPNG
Modified Paths:
--------------
trunk/fb-contrib/etc/messages.xml
Modified: trunk/fb-contrib/etc/messages.xml
===================================================================
--- trunk/fb-contrib/etc/messages.xml 2009-09-24 03:49:42 UTC (rev 1292)
+++ trunk/fb-contrib/etc/messages.xml 2009-09-24 03:49:58 UTC (rev 1293)
@@ -958,7 +958,7 @@
</Detector>
<Detector class="com.mebigfatguy.fbcontrib.detect.StutteredMethodArguments">
- <Details>
+ <Details> experimental="true"
<![CDATA[
<p>looks for method calls that pass the same value for two separate parameters, where
those arguments are not constants. Often this is a cut/paste mistake, but if not, it is
@@ -1002,6 +1002,17 @@
]]>
</Details>
</Detector>
+
+ <Detector class="com.mebigfatguy.fbcontrib.detect.InconsistentParameterNameCasing">
+ <Details>
+ <![CDATA[
+ <p>looks for methods that use parameter names to access objects in HttpRequest Parameters
+ but uses the same name with different casing. As these parameter names are case sensitive
+ this will lead to confusion.</p>
+ <p>It is a fast detector</p>
+ ]]>
+ </Details>
+ </Detector>
<!-- BugPattern -->
@@ -2612,6 +2623,17 @@
</Details>
</BugPattern>
+ <BugPattern type="IPNC_INCONSISTENT_HTTP_PARAM_CASING">
+ <ShortDescription>method uses the same HttpRequestRequest parameter name but with different casing</ShortDescription>
+ <LongDescription>method {1} uses the same HttpRequestRequest parameter name but with different casing</LongDescription>
+ <Details>
+ <![CDATA[
+ <p>This method fetches an HttpServletRequest parameter with a parmeter name that was used in other locations
+ but with a different casing. As HttpServletRequest parameters are case sensitive, this will be very confusing.
+ ]]>
+ </Details>
+ </BugPattern>
+
<!-- BugCode -->
<BugCode abbrev="ISB">Inefficient String Buffering</BugCode>
@@ -2696,4 +2718,5 @@
<BugCode abbrev="TBP">Tristate Boolean Pattern</BugCode>
<BugCode abbrev="SUA">SuspiciousUninitializedArray</BugCode>
<BugCode abbrev="ITU">Inappropriate ToString Use</BugCode>
+ <BugCode abbrev="IPNG">Inconsistent Parameter Name Casing</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.
|