How to write .NET Core Requests and Responses without having warnings
I love how I can get a report of all the code issues on my project, but they're polluted with warnings about every field of requests and responses. For instance it states that all requests are uninitialized, which is true because they are only initialized from API requests which come externally. Thus all the fields will never be seen as having been set as they will be set upon a receiving an external request, so they will have warnings. The same for responses - a response is generated and handed back through the API but the warnings state that all fields are not read, so it suggests that the field is deleted. Is there a better way of doing this?
Please sign in to leave a comment.
Hi Pajohns!
One can disable such warnings in `File | Settings | Editor | Inspection Settings | Inspection Severity`.
Also, you can `alt+enter` on a field/property and Configure inspection severity.
I hope this helps! Should you have any other questions, let us know.