SubMain - CodeIt.Right The First Time!

/Community

Support Community for SubMain Products
 Home Products Services Download Purchase Support
in Search
 
Home Forums Blogs Tutorials/CIR Tutorials/GD Downloads
Welcome to SubMain Community Sign in | Join | Help

How To

How to add rule to User Profile

Some of the rules included with CodeIt.Right are not part of the built-in profile as are not part of the Microsoft Guidelines and yet they often come very handy especially when you choose to use a standard other than recommended by Microsoft.

This post covers step-by-step how to add a rule to custom user profile. In this walk-through we will add rule "Replace identifier prefix" (ReplaceIdentifierPrefix) [Naming] and configure it to replace the old style "m_" variable prefix with the new .NET style "_" (underscore). This is very convenient when move existing old style project to the .NET naming conventions.

  1. Open Profile Editor
     
  2. Make sure you are not using built-in profile -> see How to create own Profile
  3. Click the Add Rule toolbar button


  4. Find and select the "Replace identifier prefix" in the list and click OK


  5. Enter name for the new rule (we will use "Replace "m_" with "_" is"), set PrefixToCheck parameter to "m_" and PrefixToReplace to "_", choose Targets (using only the targets that are applicable to the rule allows for better analysis performance) and click Save


  6. New rule "Replace "m_" with "_" is" is part of your profile now.

 

Published Thursday, January 24, 2008 2:15 AM by Serge B. (SubMain)

Comments

 

SubMain News said:

by Serge Baranovsky Another CodeIt.Right rule update. Next stop, release of CodeIt.Right, is targeted

January 28, 2008 3:11 PM
 

Tutorials said:

The best part about CodeIt.Right is that you are not limited to just the rule libraries included into

March 17, 2008 11:04 AM
 

Tutorials said:

You already know how you can create new custom rules using CodeIt.Right SDK , of not, you may want to

February 8, 2016 9:12 PM
Anonymous comments are disabled
    
 
     
 
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |