Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 0 additions & 4 deletions CodeLineCounter.Tests/DependencyGraphGeneratorTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using CodeLineCounter.Utils;
using CodeLineCounter.Models;
using CodeLineCounter.Services;
using System.Collections.Generic;
using System.IO;
using Xunit;

namespace CodeLineCounter.Tests
{
Expand Down
2 changes: 0 additions & 2 deletions CodeLineCounter.Tests/JsonHandlerTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using CodeLineCounter.Utils;
using System.Text.Json;
using System.Text.Json.Serialization;
using Xunit.Sdk;

namespace CodeLineCounter.Tests
{
Expand Down
10 changes: 9 additions & 1 deletion CodeLineCounter/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,21 @@ static void Main(string[] args)
return;

// file deepcode ignore PT: Not a web server. This software is a console application.
var solutionFiles = FileUtils.GetSolutionFiles(settings.DirectoryPath);
List <string> solutionFiles = FileUtils.GetSolutionFiles(settings.DirectoryPath);
if (solutionFiles.Count == 0)
{
Console.WriteLine("No solution (.sln) found in the specified directory.");
return;
}

// If only one solution found in directory, select it automatically
// if more than one waiting for user selection
if (solutionFiles.Count == 1)
{
SolutionAnalyzer.AnalyzeAndExportSolution(solutionFiles[0], settings.Verbose, settings.format);
return;
}

var solutionFilenameList = CoreUtils.GetFilenamesList(solutionFiles);
CoreUtils.DisplaySolutions(solutionFilenameList);

Expand Down
7 changes: 0 additions & 7 deletions CodeLineCounter/Services/CodeDuplicationChecker.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using CodeLineCounter.Models;
using CodeLineCounter.Utils;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;

Expand Down
5 changes: 0 additions & 5 deletions CodeLineCounter/Services/DependencyAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
using CodeLineCounter.Models;
using CodeLineCounter.Utils;
using System.Collections.Concurrent;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;


namespace CodeLineCounter.Services
Expand Down
1 change: 0 additions & 1 deletion CodeLineCounter/Services/DependencyGraphGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using CodeLineCounter.Models;
using QuikGraph;
using QuikGraph.Graphviz;
using System.Diagnostics;

namespace CodeLineCounter.Services
{
Expand Down
Loading