How to exclude file from Inspections
Answered
I am trying to exclude a file from Inspections, but I don't see any way to do that. Documentation (Configure Code Inspection Settings—ReSharper (jetbrains.com)) states that is possible, but I don't have an option "Ignored Code".
Please sign in to leave a comment.
I was able to exclude by adding the file to Generated Code, but that is not what this file is (it's a license file).
Actually, that does not work because that change is not saved to the project, therefore will not be shared with the team.
Keith Davis, thank you for your question.
You seem to be using a fairly old ReSharper version. The UI has changed since then and documentation is shown for the latest 2020.3.2 version.
To exclude files from ReSharper analysis add them to ReSharper | Options | Code Inspection | Settings | Elements to skip.
I would also like to let you know that if you click the Save button, the setting will be saved by default to the This computer layer. If you need to save the setting to another layer, click the Save To and select a specific layer.
Please let me know if you have any questions.
Maria Pleskunina
No, I'm using the latest version. I had just updated the extension before I tried to use this feature.
Keith Davis thanks for the reply. Are there any results if you search for "elements to skip" in ReSharper options?
How strange, the setting "just appeared"!
Great to hear that! Please let me know if you have any other questions.