SubMain - CodeIt.Right The First Time!

/Community

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

Control prefix rules

Last post 12-12-2008, 11:01 PM by Serge B.. 1 replies.
Sort Posts: Previous Next
  •  12-12-2008, 7:41 AM 669

    Control prefix rules

    I di a search and found several posts about enforcing prefix's on controls.

    I am trying to get this to work but I am failing to do something right.

    I am using the Use Prefix For Return Types with the following settings.

    Prefix To Check = cbo
    TypeName = System.Windows.Forms.ComboBox

    I enabled every scope and target option that was available.

    I have disabled Exclude *.designer files in the options and in the test application I dropped a combobox control on the form and left the default ComboBox1 control name.

    Running the analysis still does not find the violation and also results in a lot of extra violations for the designer generated code that I would like to not include in the report.

    So, what am I doing wrong to get it to flag the control name and how do I get it to ignore all the designer code?

     

    Thanks

     

    Brian

     

  •  12-12-2008, 11:01 PM 674 in reply to 669

    Re: Control prefix rules

    This must be a bug. Let us troubleshoot it. I will get back to you promptly.

     


    Thank you,
    Serge Baranovsky
    http://submain.com - .NET Developer Tools  |  Microsoft VB MVP  |  http://vbcity.com - VB Developer Community
    » » (Static Code Analysis + Automatic Refactoring) / Painless Coding Guidelines = CodeIt.Right - http://submain.com/codeit.right
    » » C#/VB .NET Coding Guidelines - FREE 100+ page ebook (PDF) http://submain.com/guidelines
View as RSS news feed in XML
 
     
 
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |