Browse Source

Created basic ingtegration of CodeQualityAnalysis AddIn to SharpDevelop.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5894 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Tomáš Linhart 15 years ago
parent
commit
f71f35b7c5
  1. 22
      src/AddIns/Analysis/CodeQuality/CodeQualityAnalysis.addin
  2. 19
      src/AddIns/Analysis/CodeQuality/CodeQualityAnalysis.csproj
  3. 26
      src/AddIns/Analysis/CodeQuality/CodeQualityAnalysis.sln
  4. 14
      src/AddIns/Analysis/CodeQuality/Src/DependencyGraphCommand.cs
  5. 2
      src/Tools/Tools.build

22
src/AddIns/Analysis/CodeQuality/CodeQualityAnalysis.addin

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
<AddIn name = "CodeQualityAnalysis"
author = "Tomas Linhart"
copyright = "prj:///doc/copyright.txt"
description = "Provides code quality analysis with various metrics and dependencies."
addInManagerHidden = "preinstalled">
<Manifest>
<Identity name = "ICSharpCode.CodeQualityAnalysis"/>
</Manifest>
<Runtime>
<Import assembly = "CodeQualityAnalysis.exe"/>
</Runtime>
<Path name = "/SharpDevelop/Workbench/MainMenu/Analysis">
<Condition name = "ProjectActive" activeproject="*">
<MenuItem id = "GenerateDependencyGraph"
label = "Generate Dependency Graph"
class = "ICSharpCode.CodeQualityAnalysis.DependencyGraphCommand" />
</Condition>
</Path>
</AddIn>

19
src/AddIns/Analysis/CodeQuality/CodeQualityAnalysis.csproj

@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<OutputPath>..\..\..\..\AddIns\AddIns\Misc\CodeQualityAnalysis\</OutputPath>
<OutputPath>..\..\..\..\AddIns\AddIns\Misc\CodeQualityAnalysis\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug' ">
<PlatformTarget>x86</PlatformTarget>
@ -93,6 +93,7 @@ @@ -93,6 +93,7 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Compile Include="Src\DependencyGraphCommand.cs" />
<Compile Include="Src\Field.cs" />
<Compile Include="Src\IDependency.cs" />
<Compile Include="Src\MetricsReader.cs" />
@ -160,7 +161,21 @@ @@ -160,7 +161,21 @@
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<Content Include="CodeQualityAnalysis.addin" />
<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>
</ItemGroup>
<ItemGroup>
<Content Include="CodeQualityAnalysis.addin">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

26
src/AddIns/Analysis/CodeQuality/CodeQualityAnalysis.sln

@ -3,16 +3,38 @@ Microsoft Visual Studio Solution File, Format Version 11.00 @@ -3,16 +3,38 @@ Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeQualityAnalysis", "CodeQualityAnalysis.csproj", "{76DD1CC0-0D86-44A1-9BD6-D91F79807BC3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Core", "..\..\..\Main\Core\Project\ICSharpCode.Core.csproj", "{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop", "..\..\..\Main\Base\Project\ICSharpCode.SharpDevelop.csproj", "{2748AD25-9C63-4E12-877B-4DCE96FBED54}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{76DD1CC0-0D86-44A1-9BD6-D91F79807BC3}.Debug|x86.ActiveCfg = Debug|x86
{76DD1CC0-0D86-44A1-9BD6-D91F79807BC3}.Debug|x86.Build.0 = Debug|x86
{76DD1CC0-0D86-44A1-9BD6-D91F79807BC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{76DD1CC0-0D86-44A1-9BD6-D91F79807BC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{76DD1CC0-0D86-44A1-9BD6-D91F79807BC3}.Debug|x86.ActiveCfg = Debug|Any CPU
{76DD1CC0-0D86-44A1-9BD6-D91F79807BC3}.Debug|x86.Build.0 = Debug|Any CPU
{76DD1CC0-0D86-44A1-9BD6-D91F79807BC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{76DD1CC0-0D86-44A1-9BD6-D91F79807BC3}.Release|Any CPU.Build.0 = Release|Any CPU
{76DD1CC0-0D86-44A1-9BD6-D91F79807BC3}.Release|x86.ActiveCfg = Release|x86
{76DD1CC0-0D86-44A1-9BD6-D91F79807BC3}.Release|x86.Build.0 = Release|x86
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Debug|x86.ActiveCfg = Debug|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Release|Any CPU.Build.0 = Release|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Release|x86.ActiveCfg = Release|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|x86.ActiveCfg = Debug|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|Any CPU.Build.0 = Release|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

14
src/AddIns/Analysis/CodeQuality/Src/DependencyGraphCommand.cs

@ -0,0 +1,14 @@ @@ -0,0 +1,14 @@
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop;
namespace ICSharpCode.CodeQualityAnalysis
{
public class DependencyGraphCommand : AbstractMenuCommand
{
public override void Run()
{
var window = new MainWindow();
window.Show();
}
}
}

2
src/Tools/Tools.build

@ -13,6 +13,7 @@ @@ -13,6 +13,7 @@
<HelpToolFiles Include="Help\*"/>
<PartCoverFiles Include="PartCover\*"/>
<PartCoverXsltFiles Include="PartCover\xslt\*"/>
<GraphSharpFiles Include="..\Libraries\GraphSharp\*"/>
<LanguageResource Include="$(LanguageResourcePath)StringResources.*.resx"/>
</ItemGroup>
@ -33,6 +34,7 @@ @@ -33,6 +34,7 @@
<Copy SourceFiles="@(ToolFiles)" DestinationFolder="..\..\bin\Tools" SkipUnchangedFiles="true"/>
<Copy SourceFiles="@(PartCoverFiles)" DestinationFolder="..\..\bin\Tools\PartCover" SkipUnchangedFiles="true"/>
<Copy SourceFiles="@(PartCoverXsltFiles)" DestinationFolder="..\..\bin\Tools\PartCover\Xslt" SkipUnchangedFiles="true"/>
<Copy SourceFiles="@(GraphSharpFiles)" DestinationFolder="..\..\bin\" SkipUnchangedFiles="true"/>
<!--
<MSBuild Projects="@(ToolProject)" Targets="Build">

Loading…
Cancel
Save