83 changed files with 330 additions and 92 deletions
@ -0,0 +1,21 @@ |
|||||||
|
<AddIn name = "CodeQuality" |
||||||
|
author = "Siegfried Pammer/Peter Forstmeier" |
||||||
|
copyright = "prj:///doc/copyright.txt" |
||||||
|
description = "Provides code quality analysis with various metrics and dependencies." |
||||||
|
addInManagerHidden = "preinstalled"> |
||||||
|
|
||||||
|
<Manifest> |
||||||
|
<Identity name = "ICSharpCode.CodeQuality"/> |
||||||
|
</Manifest> |
||||||
|
|
||||||
|
<Runtime> |
||||||
|
<Import assembly = "ICSharpCode.CodeQuality.dll"/> |
||||||
|
</Runtime> |
||||||
|
|
||||||
|
<Path name = "/SharpDevelop/Workbench/MainMenu/Analysis"> |
||||||
|
<MenuItem id = "AnalyzeCodeQuality" |
||||||
|
label = "Analyze Code Quality" |
||||||
|
class = "ICSharpCode.CodeQuality.Gui.AnalyzeCodeQualityCommand" |
||||||
|
insertafter = "CheckWithStyleCop" /> |
||||||
|
</Path> |
||||||
|
</AddIn> |
||||||
@ -0,0 +1,104 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build"> |
||||||
|
<PropertyGroup> |
||||||
|
<ProjectGuid>{3C532D80-32B4-40E5-B5FE-BC6BAE1A00E7}</ProjectGuid> |
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||||
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> |
||||||
|
<OutputType>Library</OutputType> |
||||||
|
<RootNamespace>ICSharpCode.CodeQuality</RootNamespace> |
||||||
|
<AssemblyName>ICSharpCode.CodeQuality</AssemblyName> |
||||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||||
|
<OutputPath>..\..\..\..\AddIns\Analysis\CodeQuality\</OutputPath> |
||||||
|
<AllowUnsafeBlocks>False</AllowUnsafeBlocks> |
||||||
|
<NoStdLib>False</NoStdLib> |
||||||
|
<WarningLevel>4</WarningLevel> |
||||||
|
<TreatWarningsAsErrors>false</TreatWarningsAsErrors> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup Condition=" '$(Platform)' == 'x86' "> |
||||||
|
<PlatformTarget>x86</PlatformTarget> |
||||||
|
<RegisterForComInterop>False</RegisterForComInterop> |
||||||
|
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies> |
||||||
|
<BaseAddress>4194304</BaseAddress> |
||||||
|
<FileAlignment>4096</FileAlignment> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> |
||||||
|
<DebugSymbols>true</DebugSymbols> |
||||||
|
<DebugType>Full</DebugType> |
||||||
|
<Optimize>False</Optimize> |
||||||
|
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow> |
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> |
||||||
|
<DebugSymbols>False</DebugSymbols> |
||||||
|
<DebugType>None</DebugType> |
||||||
|
<Optimize>True</Optimize> |
||||||
|
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow> |
||||||
|
<DefineConstants>TRACE</DefineConstants> |
||||||
|
</PropertyGroup> |
||||||
|
<ItemGroup> |
||||||
|
<Reference Include="PresentationCore" /> |
||||||
|
<Reference Include="PresentationFramework" /> |
||||||
|
<Reference Include="System" /> |
||||||
|
<Reference Include="System.Core"> |
||||||
|
<RequiredTargetFramework>3.5</RequiredTargetFramework> |
||||||
|
</Reference> |
||||||
|
<Reference Include="System.Xaml"> |
||||||
|
<RequiredTargetFramework>4.0</RequiredTargetFramework> |
||||||
|
</Reference> |
||||||
|
<Reference Include="System.Xml" /> |
||||||
|
<Reference Include="System.Xml.Linq"> |
||||||
|
<RequiredTargetFramework>3.5</RequiredTargetFramework> |
||||||
|
</Reference> |
||||||
|
<Reference Include="WindowsBase" /> |
||||||
|
</ItemGroup> |
||||||
|
<ItemGroup> |
||||||
|
<Compile Include="Engine\Dom\INode.cs" /> |
||||||
|
<Compile Include="Engine\ILAnalyzer.cs" /> |
||||||
|
<Compile Include="Engine\AssemblyAnalyzer.cs" /> |
||||||
|
<Compile Include="Gui\AnalyzeCodeQualityViewContent.cs" /> |
||||||
|
<Compile Include="Gui\Commands\AnalyzeCodeQualityCommand.cs" /> |
||||||
|
<Compile Include="Gui\MainView.xaml.cs"> |
||||||
|
<DependentUpon>MainView.xaml</DependentUpon> |
||||||
|
<SubType>Code</SubType> |
||||||
|
</Compile> |
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||||
|
</ItemGroup> |
||||||
|
<ItemGroup> |
||||||
|
<None Include="CodeQuality.addin"> |
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
||||||
|
</None> |
||||||
|
</ItemGroup> |
||||||
|
<ItemGroup> |
||||||
|
<ProjectReference Include="..\..\..\Libraries\NewNRefactory\ICSharpCode.NRefactory\ICSharpCode.NRefactory.csproj"> |
||||||
|
<Project>{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}</Project> |
||||||
|
<Name>ICSharpCode.NRefactory</Name> |
||||||
|
<Private>False</Private> |
||||||
|
</ProjectReference> |
||||||
|
<ProjectReference Include="..\..\..\Main\Base\Project\ICSharpCode.SharpDevelop.csproj"> |
||||||
|
<Project>{2748AD25-9C63-4E12-877B-4DCE96FBED54}</Project> |
||||||
|
<Name>ICSharpCode.SharpDevelop</Name> |
||||||
|
<Private>False</Private> |
||||||
|
</ProjectReference> |
||||||
|
<ProjectReference Include="..\..\..\Main\Core\Project\ICSharpCode.Core.csproj"> |
||||||
|
<Project>{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}</Project> |
||||||
|
<Name>ICSharpCode.Core</Name> |
||||||
|
<Private>False</Private> |
||||||
|
</ProjectReference> |
||||||
|
<ProjectReference Include="..\..\..\Main\ICSharpCode.Core.Presentation\ICSharpCode.Core.Presentation.csproj"> |
||||||
|
<Project>{7E4A7172-7FF5-48D0-B719-7CD959DD1AC9}</Project> |
||||||
|
<Name>ICSharpCode.Core.Presentation</Name> |
||||||
|
<Private>False</Private> |
||||||
|
</ProjectReference> |
||||||
|
</ItemGroup> |
||||||
|
<ItemGroup> |
||||||
|
<Folder Include="Engine\Dom" /> |
||||||
|
<Folder Include="Gui" /> |
||||||
|
<Folder Include="Engine" /> |
||||||
|
<Folder Include="Gui\Commands" /> |
||||||
|
</ItemGroup> |
||||||
|
<ItemGroup> |
||||||
|
<Page Include="Gui\MainView.xaml" /> |
||||||
|
</ItemGroup> |
||||||
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" /> |
||||||
|
</Project> |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
|
||||||
|
using System; |
||||||
|
|
||||||
|
namespace ICSharpCode.CodeQuality.Engine |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of AssemblyAnalyzer.
|
||||||
|
/// </summary>
|
||||||
|
public class AssemblyAnalyzer |
||||||
|
{ |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
|
||||||
|
using System; |
||||||
|
|
||||||
|
namespace ICSharpCode.CodeQuality.Engine.Dom |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of INode.
|
||||||
|
/// </summary>
|
||||||
|
public interface INode |
||||||
|
{ |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,17 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
|
||||||
|
using System; |
||||||
|
|
||||||
|
namespace ICSharpCode.CodeQuality.Engine |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of ILAnalyzer.
|
||||||
|
/// </summary>
|
||||||
|
public class ILAnalyzer |
||||||
|
{ |
||||||
|
public ILAnalyzer() |
||||||
|
{ |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,26 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
|
||||||
|
using System; |
||||||
|
using ICSharpCode.SharpDevelop.Gui; |
||||||
|
|
||||||
|
namespace ICSharpCode.CodeQuality.Gui |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of AnalyzeCodeQualityViewContent.
|
||||||
|
/// </summary>
|
||||||
|
public class AnalyzeCodeQualityViewContent : AbstractViewContent |
||||||
|
{ |
||||||
|
MainView view; |
||||||
|
|
||||||
|
public AnalyzeCodeQualityViewContent() |
||||||
|
{ |
||||||
|
this.view = new MainView(); |
||||||
|
SetLocalizedTitle("Code Quality Analyzer"); |
||||||
|
} |
||||||
|
|
||||||
|
public override object Control { |
||||||
|
get { return view; } |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,17 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
|
||||||
|
using System; |
||||||
|
using ICSharpCode.Core; |
||||||
|
using ICSharpCode.SharpDevelop.Gui; |
||||||
|
|
||||||
|
namespace ICSharpCode.CodeQuality.Gui |
||||||
|
{ |
||||||
|
public class AnalyzeCodeQualityCommand : AbstractMenuCommand |
||||||
|
{ |
||||||
|
public override void Run() |
||||||
|
{ |
||||||
|
WorkbenchSingleton.Workbench.ShowView(new AnalyzeCodeQualityViewContent()); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,14 @@ |
|||||||
|
<UserControl x:Class="ICSharpCode.CodeQuality.Gui.MainView" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
||||||
|
<DockPanel> |
||||||
|
<ToolBar DockPanel.Dock="Top"> |
||||||
|
<Button>Add Assembly</Button> |
||||||
|
</ToolBar> |
||||||
|
<TabControl> |
||||||
|
<TabItem Header="Dependency Matrix"> |
||||||
|
|
||||||
|
</TabItem> |
||||||
|
</TabControl> |
||||||
|
</DockPanel> |
||||||
|
</UserControl> |
||||||
@ -0,0 +1,26 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
|
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
|
||||||
|
namespace ICSharpCode.CodeQuality.Gui |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for MainView.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class MainView : UserControl |
||||||
|
{ |
||||||
|
public MainView() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,36 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
|
||||||
|
using System.Reflection; |
||||||
|
using System.Resources; |
||||||
|
using System.Runtime.CompilerServices; |
||||||
|
using System.Runtime.InteropServices; |
||||||
|
using System.Windows; |
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("CodeQualityAnalysis")] |
||||||
|
[assembly: AssemblyDescription("The CodeQualityAnalysis provides useful tools for analyzing assemblies and show dependencies between them.")] |
||||||
|
[assembly: AssemblyConfiguration("")] |
||||||
|
[assembly: AssemblyTrademark("")] |
||||||
|
[assembly: AssemblyCulture("")] |
||||||
|
|
||||||
|
//In order to begin building localizable applications, set
|
||||||
|
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
|
||||||
|
//inside a <PropertyGroup>. For example, if you are using US english
|
||||||
|
//in your source files, set the <UICulture> to en-US. Then uncomment
|
||||||
|
//the NeutralResourceLanguage attribute below. Update the "en-US" in
|
||||||
|
//the line below to match the UICulture setting in the project file.
|
||||||
|
|
||||||
|
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
|
||||||
|
|
||||||
|
|
||||||
|
[assembly: ThemeInfo( |
||||||
|
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// or application resource dictionaries)
|
||||||
|
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// app, or any theme specific resource dictionaries)
|
||||||
|
)] |
||||||
@ -1,36 +1,31 @@ |
|||||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
#region Using directives
|
||||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
|
||||||
|
|
||||||
|
using System; |
||||||
using System.Reflection; |
using System.Reflection; |
||||||
using System.Resources; |
|
||||||
using System.Runtime.CompilerServices; |
|
||||||
using System.Runtime.InteropServices; |
using System.Runtime.InteropServices; |
||||||
using System.Windows; |
|
||||||
|
#endregion
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("CodeQualityAnalysis")] |
[assembly: AssemblyTitle("CodeQuality")] |
||||||
[assembly: AssemblyDescription("The CodeQualityAnalysis provides useful tools for analyzing assemblies and show dependencies between them.")] |
[assembly: AssemblyDescription("")] |
||||||
[assembly: AssemblyConfiguration("")] |
[assembly: AssemblyConfiguration("")] |
||||||
|
[assembly: AssemblyCompany("")] |
||||||
|
[assembly: AssemblyProduct("CodeQuality")] |
||||||
|
[assembly: AssemblyCopyright("Copyright 2012")] |
||||||
[assembly: AssemblyTrademark("")] |
[assembly: AssemblyTrademark("")] |
||||||
[assembly: AssemblyCulture("")] |
[assembly: AssemblyCulture("")] |
||||||
|
|
||||||
//In order to begin building localizable applications, set
|
// This sets the default COM visibility of types in the assembly to invisible.
|
||||||
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
|
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
|
||||||
//inside a <PropertyGroup>. For example, if you are using US english
|
[assembly: ComVisible(false)] |
||||||
//in your source files, set the <UICulture> to en-US. Then uncomment
|
|
||||||
//the NeutralResourceLanguage attribute below. Update the "en-US" in
|
|
||||||
//the line below to match the UICulture setting in the project file.
|
|
||||||
|
|
||||||
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
|
|
||||||
|
|
||||||
|
|
||||||
[assembly: ThemeInfo( |
// The assembly version has following format :
|
||||||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
//
|
||||||
//(used if a resource is not found in the page,
|
// Major.Minor.Build.Revision
|
||||||
// or application resource dictionaries)
|
//
|
||||||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
// You can specify all the values or you can use the default the Revision and
|
||||||
//(used if a resource is not found in the page,
|
// Build Numbers by using the '*' as shown below:
|
||||||
// app, or any theme specific resource dictionaries)
|
[assembly: AssemblyVersion("1.0.*")] |
||||||
)] |
|
||||||
|
|||||||
@ -1,26 +0,0 @@ |
|||||||
/* |
|
||||||
* Created by SharpDevelop. |
|
||||||
* User: Peter Forstmeier |
|
||||||
* Date: 14.01.2012 |
|
||||||
* Time: 18:54 |
|
||||||
* |
|
||||||
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
|
||||||
*/ |
|
||||||
using System; |
|
||||||
using System.Collections.Generic; |
|
||||||
|
|
||||||
namespace ICSharpCode.CodeQualityAnalysis.Utility.Queries |
|
||||||
{ |
|
||||||
/// <summary>
|
|
||||||
/// Description of ItemWithFunction.
|
|
||||||
/// </summary>
|
|
||||||
public class ItemWithFunc |
|
||||||
{ |
|
||||||
public ItemWithFunc() |
|
||||||
{ |
|
||||||
} |
|
||||||
public string Description {get; set;} |
|
||||||
public Func<List<TreeMapViewModel>> Action {get; set;} |
|
||||||
public string Metrics {get;set;} |
|
||||||
} |
|
||||||
} |
|
||||||
Loading…
Reference in new issue