Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: magic5644/codeLineCounter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: refactor-code-introduce-exceptions
Choose a base ref
...
head repository: magic5644/codeLineCounter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 14 commits
  • 20 files changed
  • 4 contributors

Commits on Feb 18, 2025

  1. Merge pull request #28 from magic5644/refactor-code-introduce-exceptions

    Summary of PR #28: Refactor error handling and simplify graph processing
    Title: Refactor error handling and simplify graph processing
    
    Description:
    
    Introduces custom exception classes for better error handling and user feedback.
    Simplifies node and edge extraction processes.
    Enhances degree calculation and error messaging in DependencyGraphGenerator and CoreUtils.
    File Changes:
    
    CodeLineCounter.Tests/CodeAnalyzerTests.cs
    
    Refactored tests to remove redundant console output redirection.
    Simplified test setup and assertions.
    CodeLineCounter.Tests/CodeDuplicationCheckerTests.cs
    
    Refactored tests to inherit from TestBase.
    Removed redundant console output redirection.
    Simplified test setup and assertions.
    CodeLineCounter.Tests/CoreUtilsTests.cs
    
    Refactored tests to inherit from TestBase.
    Removed redundant console output redirection.
    Simplified test setup and assertions.
    CodeLineCounter.Tests/CsvHandlerTests.cs
    
    Refactored tests to inherit from TestBase.
    Removed redundant console output redirection.
    Simplified test setup and assertions.
    CodeLineCounter.Tests/CyclomaticComplexityCalculatorTests.cs
    
    Refactored tests to inherit from TestBase.
    Removed redundant console output redirection.
    Simplified test setup and assertions.
    CodeLineCounter.Tests/DataExporterTests.cs
    
    Refactored tests to inherit from TestBase.
    Removed redundant console output redirection.
    Simplified test setup and assertions.
    CodeLineCounter.Tests/DependencyGraphGeneratorTests.cs
    
    Refactored tests to inherit from TestBase.
    Removed redundant console output redirection.
    Simplified test setup and assertions.
    CodeLineCounter.Tests/FileUtilsTests.cs
    
    Refactored tests to inherit from TestBase.
    Removed redundant console output redirection.
    Simplified test setup and assertions.
    CodeLineCounter.Tests/HashUtilsTests.cs
    
    Removed redundant console output redirection.
    Simplified test setup and assertions.
    CodeLineCounter.Tests/JsonHandlerTests.cs
    
    Refactored tests to inherit from TestBase.
    Removed redundant console output redirection.
    Simplified test setup and assertions.
    CodeLineCounter.Tests/SolutionAnalyzerTests.cs
    
    Refactored tests to inherit from TestBase.
    Removed redundant console output redirection.
    Simplified test setup and assertions.
    CodeLineCounter.Tests/TestBase.cs
    
    Added a new base class for tests to handle console redirection and cleanup.
    CodeLineCounter/Exceptions/HelpRequestedException.cs
    
    Added a new custom exception for help requests.
    CodeLineCounter/Exceptions/InvalidExportFormatException.cs
    
    Added a new custom exception for invalid export formats.
    CodeLineCounter/Exceptions/InvalidNumberException.cs
    
    Added a new custom exception for invalid number inputs.
    CodeLineCounter/Exceptions/InvalidSelectionException.cs
    
    Added a new custom exception for invalid selection inputs.
    CodeLineCounter/Models/Settings.cs
    
    Updated IsValid method to throw custom exceptions.
    CodeLineCounter/Program.cs
    
    Added try-catch blocks for better error handling.
    CodeLineCounter/Services/DependencyGraphGenerator.cs
    
    Minor formatting changes.
    CodeLineCounter/Services/SolutionAnalyzer.cs
    
    Updated error handling to use Console.WriteLine instead of Console.Error.WriteLine.
    CodeLineCounter/Utils/CoreUtils.cs
    
    Updated methods to throw custom exceptions for invalid inputs.
    magic5644 authored Feb 18, 2025
    Configuration menu
    Copy the full SHA
    94662ee View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2025

  1. Configuration menu
    Copy the full SHA
    350c452 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2025

  1. Configuration menu
    Copy the full SHA
    f6b4409 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6847219 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #29 from magic5644/refactore_code_and_optimize

    Refactor exception handling and improve project extension matching
    magic5644 authored Feb 26, 2025
    Configuration menu
    Copy the full SHA
    6e16189 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5a59a6d View commit details
    Browse the repository at this point in the history
  5. Merge pull request #30 from magic5644/refactor_locking_system

    Refactor locking mechanism for resource management improvements
    magic5644 authored Feb 26, 2025
    Configuration menu
    Copy the full SHA
    d209732 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2025

  1. Configuration menu
    Copy the full SHA
    72b1913 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    110c01c View commit details
    Browse the repository at this point in the history
  3. refactor: remove unnecessary verification in HashUtilsMockTests and u…

    …pdate type assertion in HashUtilsTests
    magic5644 committed Feb 27, 2025
    Configuration menu
    Copy the full SHA
    f31c89f View commit details
    Browse the repository at this point in the history
  4. Update CodeLineCounter/Utils/HashUtils.cs

    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    magic5644 and Copilot authored Feb 27, 2025
    Configuration menu
    Copy the full SHA
    07a2151 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    141dace View commit details
    Browse the repository at this point in the history
  6. Merge pull request #31 from magic5644/feature-add-hashutils-interface

    Implement hashing functionality with IHashUtils interface and service class
    magic5644 authored Feb 27, 2025
    Configuration menu
    Copy the full SHA
    8c11145 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2025

  1. Configuration menu
    Copy the full SHA
    b1381df View commit details
    Browse the repository at this point in the history
Loading