How do I get the analysis to ignore certain projects?

13 posts, 0 answers
  1. Gregory Muirhead
    Gregory Muirhead avatar
    1 posts
    Member since:
    Nov 2009

    Posted 14 Jan 2010 Link to this post

    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?
  2. Jordan
    Admin
    Jordan avatar
    123 posts

    Posted 15 Jan 2010 Link to this post

    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.
  3. DevCraft banner
  4. Cory Benjamin
    Cory Benjamin avatar
    18 posts
    Member since:
    Jul 2006

    Posted 03 Feb 2011 Link to this post

    I would also like to see this feature.  Soon please :)   My LLBL project produces about 3700 JC warnings.
  5. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 03 Feb 2011 Link to this post

    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
  6. Cory Benjamin
    Cory Benjamin avatar
    18 posts
    Member since:
    Jul 2006

    Posted 03 Feb 2011 Link to this post

    Cool, works perfect, thanks!
  7. David
    David  avatar
    10 posts
    Member since:
    Dec 2010

    Posted 03 Feb 2011 Link to this post

    How would I filter groups of files, such as 'telerik.*.js (since that group in particular generates hundreds of warnings).
  8. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 10 Feb 2011 Link to this post

    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
  9. David
    David  avatar
    10 posts
    Member since:
    Dec 2010

    Posted 14 Apr 2011 Link to this post

    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    
  10. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 26 Apr 2011 Link to this post

    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
  11. David
    David  avatar
    10 posts
    Member since:
    Dec 2010

    Posted 27 Jul 2011 Link to this post

    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
  12. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 04 Aug 2011 Link to this post

    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 >>

  13. Robert Schoen
    Robert Schoen avatar
    17 posts
    Member since:
    Sep 2008

    Posted 23 Apr 2013 Link to this post

    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.

  14. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 26 Apr 2013 Link to this post

    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.
Back to Top
DevCraft banner