Skip to content

Conversation

@HowardvanRooijen
Copy link
Member

No description provided.

- Added PdbReader class to read debug information from PDB files.
- Introduced ReflectionMethodExtractor for extracting method inventory using reflection.
- Created RuleBasedSafetyClassifier for classifying method safety levels.
- Developed a command-line interface in Program.cs for extracting, profiling, and analyzing methods.
- Added sample application with intentional dead code patterns for testing the analyzer.
- Implemented various utility classes and methods to demonstrate dead code detection.
- Created PowerShell script for end-to-end demo of the DeadCode tool.
@github-actions
Copy link

github-actions bot commented Aug 4, 2025

Test Results

201 tests   196 ✅  24s ⏱️
  1 suites    5 💤
  1 files      0 ❌

Results for commit a401d61.

♻️ This comment has been updated with latest results.

refactor: Improve formatting and organization in config.ps1 and .editorconfig
- Updated AnalyzeCommandTests, ExtractCommandTests, FullCommandTests, ProfileCommandTests, and DeadCodeDetectionIntegrationTests classes to implement IDisposable.
- Added a NotImplementedException in the Dispose method for each test class.
- Cleaned up unused code and improved formatting in various test files.
- Updated AnalyzeCommand to fix syntax for merging collections.
- Modified project metadata in DeadCode.csproj to reflect new repository URL and license.
- Added README.md for DeadCode tool with installation instructions, usage examples, and features.
- Cleaned up unused code in SampleAppWithDeadCode, including methods and classes marked as dead code.
- Updated build script to ensure compatibility with PowerShell 7 and improve module handling.
@github-actions
Copy link

github-actions bot commented Aug 4, 2025

Code Coverage Summary Report - Linux (No TFM)

Summary
Generated on: 08/04/2025 - 11:35:21
Parser: Cobertura
Assemblies: 2
Classes: 70
Files: 46
Line coverage: 89.7% (3698 of 4122)
Covered lines: 3698
Uncovered lines: 424
Coverable lines: 4122
Total lines: 8118
Branch coverage: 64.6% (414 of 640)
Covered branches: 414
Total branches: 640
Method coverage: Feature is only available for sponsors

Coverage

DeadCode - 79%
Name Line Branch
DeadCode 79% 61.4%
DeadCode.CLI.Commands.AnalyzeCommand 97.4% 66.6%
DeadCode.CLI.Commands.AnalyzeCommand.Settings 100% 100%
DeadCode.CLI.Commands.ExtractCommand 90.5% 35%
DeadCode.CLI.Commands.ExtractCommand.Settings 100% 100%
DeadCode.CLI.Commands.FullCommand 100% 92.8%
DeadCode.CLI.Commands.FullCommand.Settings 100% 100%
DeadCode.CLI.Commands.ProfileCommand 99.2% 86.1%
DeadCode.CLI.Commands.ProfileCommand.Settings 100% 100%
DeadCode.CLI.Commands.ProfilingScenario 100%
DeadCode.CLI.Commands.ScenariosConfiguration 100%
DeadCode.Core.Models.MethodInfo 100%
DeadCode.Core.Models.MethodInventory 100% 87.5%
DeadCode.Core.Models.RedundancyReport 100% 100%
DeadCode.Core.Models.ReportStatistics 100%
DeadCode.Core.Models.SourceLocation 100%
DeadCode.Core.Models.TraceResult 100%
DeadCode.Core.Models.UnusedMethod 100% 100%
DeadCode.Core.Services.ExtractionOptions 100%
DeadCode.Core.Services.ExtractionProgress 100%
DeadCode.Core.Services.ProfilingOptions 100%
DeadCode.Infrastructure.IO.ComparisonEngine 100% 100%
DeadCode.Infrastructure.IO.JsonReportGenerator 100% 88.8%
DeadCode.Infrastructure.Profiling.DotnetTraceRunner 57.8% 13.6%
DeadCode.Infrastructure.Profiling.DotnetTraceVerifier 82.1% 50%
DeadCode.Infrastructure.Profiling.SignatureNormalizer 0% 0%
DeadCode.Infrastructure.Profiling.TraceParser 27.2% 25.5%
DeadCode.Infrastructure.Reflection.PdbReader 95% 100%
DeadCode.Infrastructure.Reflection.ReflectionMethodExtractor 63.9% 56.9%
DeadCode.Infrastructure.Reflection.RuleBasedSafetyClassifier 95.3% 81.6%
Program 97.9% 100%
TypeRegistrar 100%
TypeResolver 100% 100%
DeadCode.Tests - 95.5%
Name Line Branch
DeadCode.Tests 95.5% 73.2%
DeadCode.Tests.CLI.Commands.AnalyzeCommandTests 100%
DeadCode.Tests.CLI.Commands.ExtractCommandTests 100% 87.5%
DeadCode.Tests.CLI.Commands.FullCommandTests 100% 100%
DeadCode.Tests.CLI.Commands.ProfileCommandTests 100%
DeadCode.Tests.CLI.Infrastructure.TypeRegistrarTests 95.2% 100%
DeadCode.Tests.CLI.Infrastructure.TypeResolverTests 100% 100%
DeadCode.Tests.CLI.TestHelpers.CommandTestHelpers 0%
DeadCode.Tests.Core.Models.MethodInfoTests 100%
DeadCode.Tests.Core.Models.MethodInventoryTests 100%
DeadCode.Tests.Core.Models.RedundancyReportTests 100% 100%
DeadCode.Tests.Core.Models.SourceLocationTests 100%
DeadCode.Tests.Core.Models.TraceResultTests 100%
DeadCode.Tests.Core.Models.UnusedMethodTests 100%
DeadCode.Tests.Core.Services.ExtractionOptionsTests 100%
DeadCode.Tests.Infrastructure.IO.ComparisonEngineTests 100%
DeadCode.Tests.Infrastructure.IO.JsonReportGeneratorTests 100% 100%
DeadCode.Tests.Infrastructure.Profiling.DotnetTraceRunnerTests 98.9% 71.4%
DeadCode.Tests.Infrastructure.Profiling.DotnetTraceVerifierTests 100% 100%
DeadCode.Tests.Infrastructure.Profiling.TraceParserTests 100% 100%
DeadCode.Tests.Infrastructure.Reflection.PdbReaderTests 93.6% 56.2%
DeadCode.Tests.Infrastructure.Reflection.ReflectionMethodExtractorTests 78.8% 83.3%
DeadCode.Tests.Infrastructure.Reflection.ReflectionMethodExtractorTests.Con
structorTestClass
0%
DeadCode.Tests.Infrastructure.Reflection.ReflectionMethodExtractorTests.Gen
ericTestClass
0%
DeadCode.Tests.Infrastructure.Reflection.ReflectionMethodExtractorTests.Out
erClass
0%
DeadCode.Tests.Infrastructure.Reflection.ReflectionMethodExtractorTests.Out
erClass.NestedClass
0%
DeadCode.Tests.Infrastructure.Reflection.ReflectionMethodExtractorTests.Sig
natureTestClass
0%
DeadCode.Tests.Infrastructure.Reflection.ReflectionMethodExtractorTests.Tes
tClassWithLambda
0% 0%
DeadCode.Tests.Infrastructure.Reflection.ReflectionMethodExtractorTests.Vis
ibilityTestClass
0%
DeadCode.Tests.Infrastructure.Reflection.RuleBasedSafetyClassifierTests 82%
DeadCode.Tests.Infrastructure.Reflection.RuleBasedSafetyClassifierTests.Ser
ializableTestClass
0%
DeadCode.Tests.Infrastructure.Reflection.RuleBasedSafetyClassifierTests.Tes
tClassWithEventHandler
0%
DeadCode.Tests.Infrastructure.Reflection.RuleBasedSafetyClassifierTests.Tes
tClassWithProperty
0%
DeadCode.Tests.Infrastructure.Reflection.RuleBasedSafetyClassifierTests.Tes
tClassWithVisibility
0%
DeadCode.Tests.Infrastructure.Reflection.RuleBasedSafetyClassifierTests.Tes
tMethodClass
0%
DeadCode.Tests.Integration.DeadCodeDetectionIntegrationTests 99.1% 82.1%
DeadCode.Tests.Integration.DeadCodeDetectionSimpleTests 100% 100%
DeadCode.Tests.Integration.ProgramIntegrationTests 100%
DeadCode.Tests.Integration.ReflectionMethodScannerIntegrationTests 37.6% 21.8%

@HowardvanRooijen HowardvanRooijen merged commit 1747a92 into main Aug 4, 2025
6 checks passed
@HowardvanRooijen HowardvanRooijen deleted the feature/initial-commit branch August 4, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants