Visitar URL original
Change methods to static by 304NotModified · Pull Request #6355 · NLog/NLog · GitHub
Skip to content

Change methods to static - #6355

Merged
304NotModified merged 1 commit into
mainfrom
fix-sq-warnings
Nov 14, 2026
Merged

304NotModified merged 1 commit into
mainfrom
fix-sq-warnings

Conversation

@304NotModified

Copy link
Copy Markdown
Member

Change two methods to static

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Two methods in separate NLog components changed from instance methods to static methods. Their parameters and described behavior remain unchanged.

Changes

Static Method Declarations

Layer / File(s) Summary
Convert methods to static
src/NLog.Targets.AtomicFile/AtomicFileTarget.cs, src/NLog/Layouts/XML/XmlElementBase.cs
CreateUnixStream and EndXmlDocument changed from instance methods to static methods. Their parameters and described behavior remain unchanged.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: Minimal · up to 2f08a

This change makes two methods static without altering their behavior. No concrete user or production risk has been identified, so it is ready to merge after the normal build and test checks.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Change methods to static" names the main change: two methods become static. The raw summary confirms CreateUnixStream in AtomicFileTarget.cs and EndXmlDocument in XmlElementBase.cs changed …
Description check Passed The description "Change two methods to static" relates directly to the changeset. It states the same change as the summary, though it gives no method names.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Change methods to static" names the main change: two methods become static. The raw summary confirms CreateUnixStream in AtomicFileTarget.cs and EndXmlDocument in XmlElementBase.cs changed from instance to static. The title does not name the methods, so it is somewhat broad, but it still matches the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

I’m a rabbit, ears held high,
Two static methods catch my eye.
Their work and inputs stay the same,
Just static now beside each name.
I nibble clover, hop away.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 20e822eb-0d13-4d7c-8df2-9bdf7ace8544
Commits

Reviewing files that changed from the base of the PR and between 148b075 and 2f08a9d.

Files selected for processing: 2

  • src/NLog.Targets.AtomicFile/AtomicFileTarget.cs
  • src/NLog/Layouts/XML/XmlElementBase.cs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Nov 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.61%. Comparing base (148b075) to head (2f08a9d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6355      +/-   ##
==========================================
- Coverage   73.63%   73.61%   -0.02%     
==========================================
  Files         341      341              
  Lines       20795    20795              
  Branches     5282     5282              
==========================================
- Hits        15313    15309       -4     
- Misses       3828     3829       +1     
- Partials     1654     1657       +3     

☔ View full report in Codecov by Harness.
📢 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.

@304NotModified
304NotModified merged commit 5ee9708 into main Nov 14, 2026
38 of 39 checks passed
@304NotModified
304NotModified deleted the fix-sq-warnings branch November 14, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants