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

How do I get the analysis to ignore certain projects?

12 Answers 174 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.
Gregory Muirhead
Top achievements
Rank 1
Gregory Muirhead asked on 14 Jan 2010, 06:52 PM
We have a template project tha tis used to drive CodeSmith code generation and it is causing a large number of errors that we cannot do anything about (nor wish to) and I would like to be able to ignore the project, can I do this?

12 Answers, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 15 Jan 2010, 11:57 AM
Hello Gregory,

Thanks for the feedback. We discussed your idea to disable errors per project and we think that it is very meaningful. We have added it to our todo list.


Best wishes,
Jordan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Cory Benjamin
Top achievements
Rank 2
answered on 03 Feb 2011, 10:56 AM
I would also like to see this feature.  Soon please :)   My LLBL project produces about 3700 JC warnings.
0
Kaloyan
Telerik team
answered on 03 Feb 2011, 11:15 AM
Hi Cory Benjamin,

We have this feature implemented for quite awhile. You can go to the JustCode Options dialog and in the Code Analysis section there's a set of filter fields for items to be excluded from the analysis. You can specify files, extension wildcards, and projects in these fields. I'll quote the documentation here, so that I don't miss something:

"In the Exclude file filters and Exclude project filters input fields you can specify files and projects that should not be analyzed from JustCode. That's really useful for designer generated files. Once you have excluded a file or a project, no errors or warnings will be reported. By default .designer.cs and .designer.vb are excluded. Provide a list of file/project names separated by semicolon (;)."

Hope that helps.

All the best,
Kaloyan
the Telerik team
Browse the videos here>> to help you get started with JustCode
0
Cory Benjamin
Top achievements
Rank 2
answered on 03 Feb 2011, 04:37 PM
Cool, works perfect, thanks!
0
David
Top achievements
Rank 1
answered on 03 Feb 2011, 08:07 PM
How would I filter groups of files, such as 'telerik.*.js (since that group in particular generates hundreds of warnings).
0
Kaloyan
Telerik team
answered on 10 Feb 2011, 05:44 PM
Hi David ,

JustCode currently doesn't  support wildcards or regex in the Exclude File Filter field. For the time being you can only write "telerik." and the engine will exclude all files, containing that string in their names.
The wildcard feature is in our todo list, though, and will increase it's priority after your call. So stay in touch for updates on the topic.

Best wishes,
Kaloyan
the Telerik team
Browse the videos here>> to help you get started with JustCode
0
David
Top achievements
Rank 1
answered on 14 Apr 2011, 08:45 PM
I think it would be great if Telerik JustCode supported the ability to save either per-solution, or per-project settings - similar to .sln/.suo, or .csproj/.csproj.user.

David    
0
Kaloyan
Telerik team
answered on 26 Apr 2011, 01:57 PM
Hello David ,

Since its first release for this year (2011.1.315.3) JustCode supports per-solution settings for Code Style. These are located in the JustCode options dialog Options Sharing page. Once enabled, Options Sharing generates a settings file in the folder of your solution - <yoursolution>.jcsettings.xml, which contains the Code Style settings for your current solution. These per-solution settings have priority over the general JustCode settings. You can read more about that here. Hope that makes things clearer for you.

Greetings,
Kaloyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
David
Top achievements
Rank 1
answered on 28 Jul 2011, 02:18 AM
Will that type of feature make it to Code Analysis?

I have _many_ projects that I want to exclude, and it seems clunky to keep adding them to the Code Analysis, Exclude project filters field.

Thanks
0
Kaloyan
Telerik team
answered on 04 Aug 2011, 12:37 PM
Hi David ,

Sorry for the delay. We've been planning on some improvements on the analysis project filtering functionality of JustCode and we're considering per-solution settings of that feature as well. Stay tuned for updates on the matter.

Regards,
Kaloyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Robert Schoen
Top achievements
Rank 1
answered on 23 Apr 2013, 11:06 PM

I have an idea to improve this functionality.   Allow for the creation of a Preprocessor Directive that just code would locate in each file.
Thus you could have #JustCode Ignor Rule A; Rule C;
Each rule that would be ignored would be separated by a delimiter like a semicolon.
The rule names could be available in the existing settings dialog by hovering over the rule in the settings dialog.

You could even go so far as to allow them to reapply a rule further down the file.
#JustCode Apply Rule A; Rule C;

This would give developers even more flexibility.

0
Zdravko
Telerik team
answered on 26 Apr 2013, 07:20 AM
Hello Robert,

 We have discussed similar feature, but we haven't planned its implementation so far.
We have some more prioritized tasks for this Q so we could reconsider the idea in of the next Qs.
Thanks.

Regards,
Zdravko
the Telerik team
Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
Tags
Code Analysis
Asked by
Gregory Muirhead
Top achievements
Rank 1
Answers by
Jordan
Telerik team
Cory Benjamin
Top achievements
Rank 2
Kaloyan
Telerik team
David
Top achievements
Rank 1
Robert Schoen
Top achievements
Rank 1
Zdravko
Telerik team
Share this question
or