Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify EnvironmentVariablesConfigurationProvider.Load #6095

Conversation

SimonCropp
Copy link
Contributor

Fixes #
Design discussion issue #

Changes

Please provide a brief description of the changes here.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

@SimonCropp SimonCropp requested a review from a team as a code owner January 23, 2025 10:52
Copy link
Contributor

@Kielek Kielek left a comment

Choose a reason for hiding this comment

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

From the header of the file:

// <auto-generated /> (Turns off StyleCop analysis in this file.)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

I suppose that the current construction is for the reason.
Maybe benchmarking? Did you have chance to verify it/and or double check the source of the file?

@SimonCropp
Copy link
Contributor Author

@Kielek what generates this file?

@Kielek
Copy link
Contributor

Kielek commented Jan 23, 2025

Please check #4092. It is marked as generated to avoid stylecop check

@SimonCropp
Copy link
Contributor Author

so if u manually duplicate a file, without also duplicating the tooling that generates it, then it is no longer a generated file

@Kielek
Copy link
Contributor

Kielek commented Jan 23, 2025

Yes, it is copied, and adjusted, but all parts are still valid:

  1. Are there any changes in the source of the file?
  2. I suppose that the current construction is for the reason. Maybe benchmarking? Did you have chance to verify it/and or double check the source of the file?

@rajkumar-rangaraj
Copy link
Contributor

@SimonCropp The reason for the while loop is the same as described in this discussion, and it is from a file copied from the .NET runtime. How do you want to proceed on this PR?

Copy link
Contributor

github-actions bot commented Feb 7, 2025

This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or pushing will instruct the bot to automatically remove the label. This bot runs once per day.

@github-actions github-actions bot added the Stale Issues and pull requests which have been flagged for closing due to inactivity label Feb 7, 2025
Copy link

codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.40%. Comparing base (b508b84) to head (73cbc86).
Report is 9 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #6095   +/-   ##
=======================================
  Coverage   86.40%   86.40%           
=======================================
  Files         257      257           
  Lines       11649    11649           
=======================================
  Hits        10065    10065           
  Misses       1584     1584           

@SimonCropp SimonCropp closed this Feb 7, 2025
@SimonCropp SimonCropp deleted the simplify-EnvironmentVariablesConfigurationProvider.Load branch February 12, 2025 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Issues and pull requests which have been flagged for closing due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants