Can you turn off code analysis for DataAccess generated classes?

5 posts, 0 answers
  1. Greg
    Greg avatar
    16 posts
    Member since:
    Sep 2013

    Posted 03 Oct 2014 Link to this post

    I am using JustCode and DataAccess.  I'm wondering if there is a way to turn off JustCode analysis for the DataAccess generated classes, as the naming conventions used by DataAccess are giving me warnings because the names are cased wrong or are using the _ within method names. 

    Can I selectively disable the JustCode analysis on a give class?  That would be nice because it would work with other ORM and other code-generated classes that cannot easily follow naming conventions and that should not be modified to correct the warnings, as it would cause problem the next time the code is regenerated.   

    Also, many of the SQL naming conventions do not match C# and .Net naming conventions.  So when DataAccess uses the SQL table, sprocs, and parameter names as method names in the .Net classes, all of these will throw warnings. I have about 200 warnings like this, which effectively hides any valid warnings that I need to see.  So at this point, the JustCode warnings become useless because I cannot pick through the 200 DataAccess generated warnings to find the couple that are valid.

    How can I better manage this?  I'd like to work through the warnings, but I need to turn them off on all of the DataAccess generated classes to do so.



  2. Greg
    Greg avatar
    16 posts
    Member since:
    Sep 2013

    Posted 03 Oct 2014 in reply to Greg Link to this post

    I just realized you can disable patterns and the generated files are set by default.  Do you have to manually enter these one at a time?  I am entering the name of a project, but it is not ignoring it, as I have my DataAccess classes all in a separate project.  So I am trying to ignore it, but it is not working.
  3. DevCraft banner
  4. Greg
    Greg avatar
    16 posts
    Member since:
    Sep 2013

    Posted 03 Oct 2014 in reply to Greg Link to this post

    Well, it's not working.  I am putting the project names in the project filter and it is not work.  The Warnings are still showing on the DataAccess classes. 
  5. Greg
    Greg avatar
    16 posts
    Member since:
    Sep 2013

    Posted 03 Oct 2014 in reply to Greg Link to this post

    Since I cannot get the project filter to work, I just entered all of the C# classes individually in the file filter and that worked.  Not sure why the project filter is not working.
  6. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 08 Oct 2014 Link to this post

    Hi Jon,

    I tried to reproduce your issue with the project filters, but everything worked fine for me.
    Basically you will have to add the name of the project in the input field and that is all. The warnings/errors from the project will be muted.

    Once you have added the project to the filter do you find any problems reported in JustCode's error window?
    You can open it from VS JustCode menu > Windows > Show Error List window.

    In order to investigate your case further I will need some additional information like project names and the string you input in the filter field.
    Also, the logs from %localappdata%\JustCode\Logs folder might be useful so consider sending them in a private ticket.

    For further guidance I will suggest visiting our help article which provides explanation for the patterns available for the file filter feature.

    Regards,
    Zdravko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner