Skip to content

Commit

Permalink
v8.2024.1008.1900
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatandrei committed Oct 8, 2024
1 parent 378312e commit 6e2bc8d
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 34 deletions.
66 changes: 35 additions & 31 deletions AnalyzeOthers.ps1
Original file line number Diff line number Diff line change
@@ -1,32 +1,6 @@
#done
#$url= "https://github.com/fullstackhero/dotnet-starter-kit"
#done
#$url="https://github.com/ivanpaulovich/clean-architecture-manga"
#many sln
#$url ="https://github.com/evolutionary-architecture/evolutionary-architecture-by-example"
#done
#$url="https://github.com/jasontaylordev/CleanArchitecture"
#done
#$url="https://github.com/jbogard/ContosoUniversityDotNetCore-Pages"
#3 sln
#$url="https://github.com/dotnet/eShop"
#the project do not compile -errors
# $url="https://github.com/kgrzybek/modular-monolith-with-ddd"
# $url="https://github.com/nitish-kaushik/aspnetcore-webapi-clean-architecture"
#$url="https://github.com/nopSolutions/nopCommerce"
#TBD error : $url="https://github.com/dotnetcore/CAP"
# $url="https://github.com/dotnetcore/CAP"
# $url="https://github.com/meysamhadeli/booking-microservices"
# $url="https://github.com/rafaelfgx/Architecture"
#$url="https://github.com/ardalis/CleanArchitecture"
function AnalyzeProject ( $url ){

#$url = "https://github.com/danpdc/cleanArchitectureTemplate"

#TODO: https://github.com/topics/architecture?l=c%23&o=desc&s=stars

#TODO: https://github.com/simplcommerce/SimplCommerce
#TODO: https://github.com/grandnode/grandnode2
#TODO: https://github.com/gothinkster/aspnetcore-realworld-example-app
Push-Location .

$name = $url.Split('/')[-1]
$analyzerPath = Get-Location
Expand Down Expand Up @@ -58,7 +32,6 @@ Set-Content -Path $filePath -Value $jsonContent
}


Push-Location ..

if(-not (Test-Path $name)) {
git clone $url
Expand All @@ -84,8 +57,8 @@ $sln | ForEach-Object {
dotnet tool update netpackageanalyzerconsole
Write-Host "Current path: $(Get-Location)"
# Push-Location .
dotnet PackageAnalyzer generateFiles -wg Docusaurus
# dotnet PackageAnalyzer generateFiles -wg HtmlSummary
# dotnet PackageAnalyzer generateFiles -wg Docusaurus
dotnet PackageAnalyzer generateFiles -wg HtmlSummary

cd Analysis
cd docs
Expand Down Expand Up @@ -124,4 +97,35 @@ $sln | ForEach-Object {
}

Pop-Location
cls
}


#done
AnalyzeProject "https://github.com/fullstackhero/dotnet-starter-kit"
#done
AnalyzeProject "https://github.com/ivanpaulovich/clean-architecture-manga"
#many sln
#$url ="https://github.com/evolutionary-architecture/evolutionary-architecture-by-example"
#done
AnalyzeProject "https://github.com/jasontaylordev/CleanArchitecture"
#done
AnalyzeProject "https://github.com/jbogard/ContosoUniversityDotNetCore-Pages"
#3 sln
AnalyzeProject "https://github.com/dotnet/eShop"
#the project do not compile -errors
# $url="https://github.com/kgrzybek/modular-monolith-with-ddd"
AnalyzeProject "https://github.com/nitish-kaushik/aspnetcore-webapi-clean-architecture"
AnalyzeProject "https://github.com/nopSolutions/nopCommerce"
AnalyzeProject "https://github.com/dotnetcore/CAP"
AnalyzeProject "https://github.com/meysamhadeli/booking-microservices"
AnalyzeProject "https://github.com/rafaelfgx/Architecture"
AnalyzeProject "https://github.com/ardalis/CleanArchitecture"

AnalyzeProject "https://github.com/danpdc/cleanArchitectureTemplate"

#TODO: https://github.com/topics/architecture?l=c%23&o=desc&s=stars

#TODO: https://github.com/simplcommerce/SimplCommerce
#TODO: https://github.com/grandnode/grandnode2
#TODO: https://github.com/gothinkster/aspnetcore-realworld-example-app
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ public static void InterceptMethod(DataFromInterceptTiming data)
{
var duration = data.EndTime-data.StartTime;
Console.WriteLine($"{TheAssemblyInfo.GeneratedNameNice}");
Console.WriteLine("Generated duration seconds: " + duration.TotalSeconds.ToString("#"));
var durat = duration.TotalSeconds;
if(durat< 120)
{
Console.WriteLine("Generated duration seconds: " + duration.TotalSeconds.ToString("#"));
}
else
{
Console.WriteLine("Generated duration minutes: " + duration.TotalMinutes.ToString("#"));
}

//Console.WriteLine("method called: " + data.ClassName + "." + data.MethodName);
//Console.WriteLine("start time: " + data.StartTime);
//Console.WriteLine("end time: " + data.EndTime);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<ProjectReference Include="..\NetPackageAnalyzerWork\NetPackageAnalyzerDocusaurus.csproj" />
</ItemGroup>
<PropertyGroup>
<Version>8.2024.1006.2232</Version>
<Version>8.2024.1008.1900</Version>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<PackAsTool>true</PackAsTool>
<ToolCommandName>PackageAnalyzer</ToolCommandName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public NamePerCount[] ClassNumberMethods()
{
return genericMetricsAssembly
.SelectMany(it => it.Childs)
.Select(it => new NamePerCount(it.Name, it.Childs.Length))
.Distinct()
.Select(a => new NamePerCount(a.Name, a.Childs.Length))
.ToArray();

}
Expand Down

0 comments on commit 6e2bc8d

Please sign in to comment.