Skip to content

Commit

Permalink
initial project setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeedwards83 committed Feb 12, 2011
1 parent b945114 commit b3c4f0d
Show file tree
Hide file tree
Showing 26 changed files with 347 additions and 0 deletions.
34 changes: 34 additions & 0 deletions CodeStadt.sln
@@ -0,0 +1,34 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source", "Source", "{FF99016F-A66F-422C-939C-D53FB5AAC8EC}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{F6815E31-66D0-4EA1-A079-4137148938BF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeStadt.Core.Tests", "Source\CodeStadt.Core.Tests\CodeStadt.Core.Tests.csproj", "{4895D376-B8D3-4A1A-A65C-09832F6006A7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeStadt.Core", "Source\CodeStadt.Core\CodeStadt.Core.csproj", "{A7761043-8B48-410F-9063-06BFFAF6B524}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4895D376-B8D3-4A1A-A65C-09832F6006A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4895D376-B8D3-4A1A-A65C-09832F6006A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4895D376-B8D3-4A1A-A65C-09832F6006A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4895D376-B8D3-4A1A-A65C-09832F6006A7}.Release|Any CPU.Build.0 = Release|Any CPU
{A7761043-8B48-410F-9063-06BFFAF6B524}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A7761043-8B48-410F-9063-06BFFAF6B524}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A7761043-8B48-410F-9063-06BFFAF6B524}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A7761043-8B48-410F-9063-06BFFAF6B524}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{A7761043-8B48-410F-9063-06BFFAF6B524} = {FF99016F-A66F-422C-939C-D53FB5AAC8EC}
{4895D376-B8D3-4A1A-A65C-09832F6006A7} = {F6815E31-66D0-4EA1-A079-4137148938BF}
EndGlobalSection
EndGlobal
Binary file added CodeStadt.suo
Binary file not shown.
58 changes: 58 additions & 0 deletions Source/CodeStadt.Core.Tests/CodeStadt.Core.Tests.csproj
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{4895D376-B8D3-4A1A-A65C-09832F6006A7}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CodeStadt.Core.Tests</RootNamespace>
<AssemblyName>CodeStadt.Core.Tests</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
36 changes: 36 additions & 0 deletions Source/CodeStadt.Core.Tests/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// 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("CodeStadt.Core.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CodeStadt.Core.Tests")]
[assembly: AssemblyCopyright("Copyright © 2011")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("ee243f58-3924-4dbf-a164-9e3f847bc511")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,5 @@
D:\Git\CodeStadt\Source\CodeStadt.Core.Tests\bin\Debug\CodeStadt.Core.Tests.dll
D:\Git\CodeStadt\Source\CodeStadt.Core.Tests\bin\Debug\CodeStadt.Core.Tests.pdb
D:\Git\CodeStadt\Source\CodeStadt.Core.Tests\obj\Debug\ResolveAssemblyReference.cache
D:\Git\CodeStadt\Source\CodeStadt.Core.Tests\obj\Debug\CodeStadt.Core.Tests.dll
D:\Git\CodeStadt\Source\CodeStadt.Core.Tests\obj\Debug\CodeStadt.Core.Tests.pdb
Binary file not shown.
Binary file not shown.
82 changes: 82 additions & 0 deletions Source/CodeStadt.Core/CodeStadt.Core.csproj
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{A7761043-8B48-410F-9063-06BFFAF6B524}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CodeStadt.Core</RootNamespace>
<AssemblyName>CodeStadt.Core</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="DrivenMetrics, Version=0.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Depends\DrivenMetrics.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil, Version=0.6.8.8607, Culture=neutral, PublicKeyToken=c04d82a8546dde85, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Depends\Mono.Cecil.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Extensions, Version=0.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Depends\Mono.Cecil.Extensions.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Mdb, Version=0.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Depends\Mono.Cecil.Mdb.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Pdb, Version=0.2.0.0, Culture=neutral, PublicKeyToken=c04d82a8546dde85, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Depends\Mono.Cecil.Pdb.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Service References\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
31 changes: 31 additions & 0 deletions Source/CodeStadt.Core/Program.cs
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mono.Cecil;
using Driven.Metrics.Reporting;
using Driven.Metrics.metrics;

namespace CodeStadt.Core
{
class Program
{
static void Main(string[] args)
{
var something = new Driven.Metrics.DrivenMetrics.Factory().Create(
new string[] { "CodeStadt.Core.exe" },
new IMetricCalculator[]{
new NumberOfLinesCalculator(300),
new ILCyclomicComplextityCalculator(4)},
"TestReport",
(new ReportFactory()).ResolveReport(ReportType.All, "TestReport"));

something.RunAllMetricsAndGenerateReport();





}
}
}
36 changes: 36 additions & 0 deletions Source/CodeStadt.Core/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// 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("CodeStadt.Core")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CodeStadt.Core")]
[assembly: AssemblyCopyright("Copyright © 2011")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("462f51e5-1359-408c-ae62-d3e77471f358")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Binary file not shown.
Binary file not shown.
Binary file not shown.
11 changes: 11 additions & 0 deletions Source/CodeStadt.Core/bin/Debug/CodeStadt.Core.vshost.exe.manifest
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Source/CodeStadt.Core/bin/Debug/Mono.Cecil.dll
Binary file not shown.
44 changes: 44 additions & 0 deletions Source/CodeStadt.Core/bin/Debug/TestReport.html
@@ -0,0 +1,44 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Driven Metric Report</title>
<style type="text/css">
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
}
th {
background-color: gray;
}
h2 {
border-bottom-style: solid;
}

#fail {
background-color:red;

}
#pass
{
background-color:green;
}
td
{
min-width:230px;
}

</style>
</head>
<body><h1>Driven Metric Report</h1><h2>Number Of Lines Of Code</h2><table border="1">
<tr>
<th>Class</th>
<th>Method</th>
<th>Result</th>
</tr><tr><td>Program</td><td>&nbsp</td><td>&nbsp</td></tr><td>&nbsp</td><td>System.Void Main(System.String[])</td><td id ="pass">2</td></tr></table><h2>Cyclomic Complexity</h2><table border="1">
<tr>
<th>Class</th>
<th>Method</th>
<th>Result</th>
</tr><tr><td>Program</td><td>&nbsp</td><td>&nbsp</td></tr><td>&nbsp</td><td>System.Void Main(System.String[])</td><td id ="pass">1</td></tr></table> </BODY></HTML>
@@ -0,0 +1,10 @@
D:\Git\CodeStadt\Source\CodeStadt.Core\bin\Debug\CodeStadt.Core.exe
D:\Git\CodeStadt\Source\CodeStadt.Core\bin\Debug\CodeStadt.Core.pdb
D:\Git\CodeStadt\Source\CodeStadt.Core\bin\Debug\DrivenMetrics.dll
D:\Git\CodeStadt\Source\CodeStadt.Core\bin\Debug\Mono.Cecil.dll
D:\Git\CodeStadt\Source\CodeStadt.Core\bin\Debug\Mono.Cecil.Extensions.dll
D:\Git\CodeStadt\Source\CodeStadt.Core\obj\Debug\ResolveAssemblyReference.cache
D:\Git\CodeStadt\Source\CodeStadt.Core\obj\Debug\CodeStadt.Core.exe
D:\Git\CodeStadt\Source\CodeStadt.Core\obj\Debug\CodeStadt.Core.pdb
D:\Git\CodeStadt\Source\CodeStadt.Core\bin\Debug\Mono.Cecil.Mdb.dll
D:\Git\CodeStadt\Source\CodeStadt.Core\bin\Debug\Mono.Cecil.Pdb.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit b3c4f0d

Please sign in to comment.