Skip to content

Commit

Permalink
more summary
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatandrei committed Oct 6, 2024
1 parent 44ff398 commit af41417
Showing 1 changed file with 75 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
Radar radar = new(Tuple.Create(projectDicts, publicClassRefData, assemblyDataFromMSFT, "andrei"));
var bb0 = projectDicts.BuildingBlocks(0);
var testProjects = projectDicts.TestsProjects;
var rootProjects = projectDicts.RootProjects;
var execAssLines = assemblyDataFromMSFT
.AssemblyMetric(eMSFTMetrics.ExecutableLines)
.OrderByDescending(it => it.Count)
Expand Down Expand Up @@ -214,6 +215,13 @@
<a href="#building-blocks"> Building Blocks </a>: @bb0.Length
</td>
</tr>
<tr>
<td>@(++tableRow)</td>
<td>
<a href="#root-projects"> Root Projects </a>: @rootProjects.Length
</td>
</tr>

<tr>
<td>@(++tableRow)</td>
<td>
Expand Down Expand Up @@ -251,13 +259,15 @@
<ol>
<li>Goto <a href="#building-blocks"> Building Blocks </a> @bb0.Length - you can understand those projects without references
</li>
<li>Goto <a href="#root-projects"> Root Projects </a> @rootProjects.Length - see the starting projects
<li>Goto
<a href="#test-projects-table">TestProjects</a> @testProjects.Length - see what other projects they are testing

</li>
<li>See
<a href="#projects-with-tests">relation of the projects</a>
</li>
<li>TODO : projects with least classes </li>

</ol>
<h2>If you want to improve the project</h2>
Expand All @@ -281,6 +291,12 @@
methods with most lines
</a>
</li>
<li>
Todo : Classes with most public methods
</li>
<li>
Todo : Classes with most methods
</li>
</ol>

</div>
Expand Down Expand Up @@ -740,6 +756,65 @@
</script>

<h2 id="root-projects">Root projects : @rootProjects.Length </h2>
@foreach (var bbProj in rootProjects)
{
var nameCsproj = bbProj.NameCSproj();
var relativePath = bbProj.RelativePath();
<text>
<h3>Project: @nameCsproj</h3>
Full Name : @relativePath

<div class="mermaid">
flowchart LR
@nameCsproj
@foreach (var rel in bbProj.ProjectsReferences)
{
<text>
@rel.FullNameMermaid()
@rel.NameCSproj()-->@nameCsproj
</text>
}

</div>

</text>
}

<div id="root-projects-table"></div>

<script>
var tabledata = [
@foreach (var bbProj in rootProjects)
{
var nameCsproj = bbProj.NameCSproj();
string refTo = "";
foreach (var rel in bbProj.ProjectsReferences)
{
refTo += rel.NameCSproj() + ";";
}
<text>
{"Name": "@nameCsproj", "RelProj": "@refTo" },
</text>
}
];
var table = new Tabulator("#root-projects-table", {
data: tabledata,
layout: "fitColumns",
pagination: "local",
paginationSize: 10,
paginationSizeSelector: [10, 20],
movableColumns: true,
paginationCounter: "rows",
columns: [
{ formatter: "rownum", hozAlign: "center", width: 40 },
{ title: "Name", field: "Name", headerFilter: "input" },
{ title: "Related Projects", field: "RelProj", headerFilter: "input" },
],
});
</script>


<h2 id="test-projects">Test projects: @(testProjects.Length) </h2>
@foreach (var bbProj in testProjects)
Expand Down

0 comments on commit af41417

Please sign in to comment.