-
Notifications
You must be signed in to change notification settings - Fork 194
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
Print warning when AddJsonFile is called with "local.settings.json" #613
Comments
Thinking out loud here - since the Functions SDK provides the |
@SeanFeldman we could. @anthonychu is the main concern here cases where customers may be unknowingly loading development settings when running in prod? |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
We'll leave this open to track adding a analyzer, but this is low priority at the moment. |
This is an old issue, but I'm going to share a pretty strong opinion... forcing any kind of file name here is bad because it breaks from the conventions of dotnet a whole. Furthermore, using a cascade of json files to override things is a common and correct convention among teams. The example I come across, and something we use in web apps, is that we commit an Can they set an environment variable, sure, but that's not as convenient as saving a text file you already have open. |
Hello, I would like to make a contribution by adding an analyzer which will warn users. Is this task still relevant? |
Is it possible to somehow warn if someone tries to load local.settings.json like this? Maybe an analyzer?
There's no reason to do this. Locally, Core Tools already loads the settings from that file into the environment. In Azure, we don't want customers using local.settings.json. They should be using App Settings.
The text was updated successfully, but these errors were encountered: