Skip to content

Conversation

@samtrion
Copy link
Member

@samtrion samtrion commented Nov 2, 2025

No description provided.

@samtrion samtrion self-assigned this Nov 2, 2025
@samtrion samtrion added state:ready for merge Indicates that a pull request has been reviewed and approved, and is ready to be merged into the mai type:feature Indicates a new feature or enhancement to be added. labels Nov 2, 2025
@samtrion samtrion requested a review from Copilot November 2, 2025 00:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds new functionality to the CSharpCodeBuilder class by introducing two new methods: ScopeLine for combining line appending with scope creation, and Intend for manual indentation control. The PR includes comprehensive test coverage for both features.

Key Changes:

  • Added ScopeLine method that combines AppendLine with Scope functionality
  • Added Intend method for manual single-unit indentation control
  • Comprehensive test coverage for both new methods including edge cases and integration scenarios

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
src/NetEvolve.CodeBuilder/CSharpCodeBuilder.Scope.cs Adds ScopeLine method with XML documentation
src/NetEvolve.CodeBuilder/CSharpCodeBuilder.Clear.cs Adds Intend method with XML documentation
tests/NetEvolve.CodeBuilder.Tests.Unit/CSharpCodeBuilderTests.Scope.cs Adds comprehensive tests for Scope and ScopeLine methods
tests/NetEvolve.CodeBuilder.Tests.Unit/CSharpCodeBuilderTests.Clear.cs Adds comprehensive tests for Intend method

@codecov
Copy link

codecov bot commented Nov 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.96%. Comparing base (20a3b3d) to head (721a851).
⚠️ Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #20      +/-   ##
==========================================
+ Coverage   83.26%   83.96%   +0.70%     
==========================================
  Files          13       13              
  Lines         233      237       +4     
  Branches       73       74       +1     
==========================================
+ Hits          194      199       +5     
  Misses         23       23              
+ Partials       16       15       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

samtrion and others added 5 commits November 2, 2025 01:15
…ests.Clear.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Martin Stühmer <me@samtrion.net>
…ests.Clear.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Martin Stühmer <me@samtrion.net>
…ests.Scope.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Martin Stühmer <me@samtrion.net>
…ests.Clear.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Martin Stühmer <me@samtrion.net>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Martin Stühmer <me@samtrion.net>
@samtrion samtrion merged commit 1b87e03 into main Nov 2, 2025
10 checks passed
@samtrion samtrion deleted the feature/scopeline branch November 2, 2025 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:ready for merge Indicates that a pull request has been reviewed and approved, and is ready to be merged into the mai type:feature Indicates a new feature or enhancement to be added.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants