This is a migrated thread and some comments may be shown as answers.

Can you turn off code analysis for DataAccess generated classes?

4 Answers 53 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Greg
Top achievements
Rank 1
Greg asked on 03 Oct 2014, 05:03 PM
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.



4 Answers, 1 is accepted

Sort by
0
Greg
Top achievements
Rank 1
answered on 03 Oct 2014, 05:14 PM
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.
0
Greg
Top achievements
Rank 1
answered on 03 Oct 2014, 07:02 PM
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. 
0
Greg
Top achievements
Rank 1
answered on 03 Oct 2014, 08:06 PM
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.
0
Zdravko
Telerik team
answered on 08 Oct 2014, 11:57 AM
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.

 
Tags
Code Analysis
Asked by
Greg
Top achievements
Rank 1
Answers by
Greg
Top achievements
Rank 1
Zdravko
Telerik team
Share this question
or