SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

StyleCop AddIn for Source Code Analysis

Last post 07-15-2008 9:34 AM by lextm. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 06-26-2008 6:05 PM

    StyleCop AddIn for Source Code Analysis

    I created a very simple addin to integrate Microsoft StyleCop. StyleCop analyzes C# source code to enforce a set of best practice style and consistency rules. It was and is used internally by many Microsoft groups.

    The source and packaged addin can be found on CodePlex at http://www.codeplex.com/sharpdevstylecop

     Many thanks to the #D team for the FxCop addin - this is a very similar task.

  • 06-28-2008 6:11 AM In reply to

    • lextm
    • Top 100 Contributor
    • Joined on 07-12-2006
    • Posts 23

    Re: StyleCop AddIn for Source Code Analysis

    Hi, Matt. First, thank you again for updating Alex for #D 3. Second, this StypeCop Add In is excellent. But after clicking "Modify StyleCop" to make some changes, I cannot click OK to save them on Windows Vista Home Basic. The message is like this,

    Microsoft Source Analysis

    The settings file could not be saved: access denied, "C:\Program Files\MSBuild\Microsoft\SourceAnalysis\v4.2\Settings.SourceAnalysis".

  • 06-29-2008 4:04 PM In reply to

    Re: StyleCop AddIn for Source Code Analysis

    SharpDevelop by default runs non-elevated, this means even administrative user accounts cannot write to %Program Files%. It is not recommended that you elevate the entire SharpDevelop, but have a separate config dialog that can elevated via UAC.

    Chris

  • 07-06-2008 5:07 AM In reply to

    • lextm
    • Top 100 Contributor
    • Joined on 07-12-2006
    • Posts 23

    Re: StyleCop AddIn for Source Code Analysis

     Chris, you are right. Hope Matt can modify this add in a little bit to write settings to user specific folder instead of %Program Files%.

  • 07-09-2008 5:49 AM In reply to

    Re: StyleCop AddIn for Source Code Analysis

    Thanks for the bug report. 1.02 is now available, which moves the settings file into the user's add-in data folder. A different setting file can be managed per-project as well, if you would like to do so.

    That should take care of the Vista issue.

  • 07-15-2008 9:34 AM In reply to

    • lextm
    • Top 100 Contributor
    • Joined on 07-12-2006
    • Posts 23

    Re: StyleCop AddIn for Source Code Analysis

     Hi Matt, thanks for the fix.

Page 1 of 1 (6 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.