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

Improve environment variable analyzer to catch dotnet configuration APIs #311

Open
allantargino opened this issue May 12, 2024 · 0 comments
Labels
Analyzer Enhancement New feature or request P3

Comments

@allantargino
Copy link
Member

PR #309 introduced a roslyn analyzer to prevent users from using environment variables.
But besides accessing it directly from System.Environment, users may still reference configuration through other APIs such as
IConfiguration, IOptions, IOptionsSnapshot and IOptionsMonitor. We could enhance the implementation to catch those cases too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Analyzer Enhancement New feature or request P3
Projects
None yet
Development

No branches or pull requests

3 participants