Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions CodeLineCounter/Services/DependencyGraphGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Text;
using CodeLineCounter.Models;
using DotNetGraph;
using DotNetGraph.Attributes;
Expand Down Expand Up @@ -84,7 +85,7 @@
var info = vertexInfo[vertex];
var node = new DotNode();
node.WithIdentifier(vertex, true);
node.Label = $"{vertex}" +Environment.NewLine + $"\nIn: {info.incoming}, Out: {info.outgoing}";
node.Label = $"{vertex}" + Environment.NewLine + $"\nIn: {info.incoming}, Out: {info.outgoing}";
node.Shape = DotNodeShape.Oval;
node.WithPenWidth(2);

Expand Down Expand Up @@ -134,7 +135,7 @@
targetNamespaceList = [];
namespaceGroups[dep.TargetNamespace] = targetNamespaceList;
}

if (!targetNamespaceList.Contains(dep.TargetClass))
{
targetNamespaceList.Add(dep.TargetClass);
Expand All @@ -154,7 +155,8 @@

await graph.CompileAsync(context);
var result = writer.GetStringBuilder().ToString();
await File.WriteAllTextAsync(outputPath, result);
//using sync write for reliability with async we got some issues
File.WriteAllText(outputPath, result);

Check warning on line 159 in CodeLineCounter/Services/DependencyGraphGenerator.cs

View workflow job for this annotation

GitHub Actions / Linux .NET 9

Await WriteAllTextAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)

Check warning on line 159 in CodeLineCounter/Services/DependencyGraphGenerator.cs

View workflow job for this annotation

GitHub Actions / Linux .NET 9

Await WriteAllTextAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)

Check warning on line 159 in CodeLineCounter/Services/DependencyGraphGenerator.cs

View workflow job for this annotation

GitHub Actions / Windows .NET 9

Await WriteAllTextAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)

Check warning on line 159 in CodeLineCounter/Services/DependencyGraphGenerator.cs

View workflow job for this annotation

GitHub Actions / Windows .NET 9

Await WriteAllTextAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)

Check warning on line 159 in CodeLineCounter/Services/DependencyGraphGenerator.cs

View workflow job for this annotation

GitHub Actions / macOS .NET 9

Await WriteAllTextAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)

Check warning on line 159 in CodeLineCounter/Services/DependencyGraphGenerator.cs

View workflow job for this annotation

GitHub Actions / macOS .NET 9

Await WriteAllTextAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)

Check warning on line 159 in CodeLineCounter/Services/DependencyGraphGenerator.cs

View workflow job for this annotation

GitHub Actions / Linux .NET 9

Await WriteAllTextAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)

Check warning on line 159 in CodeLineCounter/Services/DependencyGraphGenerator.cs

View workflow job for this annotation

GitHub Actions / Linux .NET 9

Await WriteAllTextAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)

Check warning on line 159 in CodeLineCounter/Services/DependencyGraphGenerator.cs

View workflow job for this annotation

GitHub Actions / Windows .NET 9

Await WriteAllTextAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)

Check warning on line 159 in CodeLineCounter/Services/DependencyGraphGenerator.cs

View workflow job for this annotation

GitHub Actions / Windows .NET 9

Await WriteAllTextAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)

Check warning on line 159 in CodeLineCounter/Services/DependencyGraphGenerator.cs

View workflow job for this annotation

GitHub Actions / macOS .NET 9

Await WriteAllTextAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)

Check warning on line 159 in CodeLineCounter/Services/DependencyGraphGenerator.cs

View workflow job for this annotation

GitHub Actions / macOS .NET 9

Await WriteAllTextAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)
}

private static List<DependencyRelation> FilterAssemblyFromDependencies(string? filterAssembly, List<DependencyRelation> filteredDependencies)
Expand Down
Loading