WARN IF Count > 0 IN SELECT METHODS WHERE NbILInstructions > 200 ORDER BY NbILInstructions DESC // METHODS WHERE NbILInstructions > 200 are extremely complex and // should be split in smaller methods.
WARN IF Count > 0 IN SELECT FIELDS WHERE NameLike "^m_" AND IsStatic // A static field should not be named 'm_XXX'.
WARN IF Count > 0 IN SELECT TYPES OUT OF NAMESPACES "System.Xml" WHERE DepthOfIsUsing "System.Xml.XmlChildNodes" == 1 // Restrict the possibility to use the type "System.Xml.XmlChildNodes" // only to certain namespace.
SELECT TYPES WHERE DepthOfDeriveFrom "System.Windows.Forms.Control" == 1 // Select classes which derive directly from control.
SELECT TOP 10 TYPES WHERE IsStructure ORDER BY NbILInstructions DESC
发表于 @ 2006年04月29日 16:28:00|评论(loading...)|编辑