JARRRRG
JARRRRG

Reputation: 926

Exclude all files that have a particular name in the file from Resharper Code analysis

VS 2015 - latest Resharper from website.

I have multiple files such as pain.a.js, pain.b.js, pain.c.js.

I've tried excluding folders and files from the Resharper code analysis but I would like to be able to do it as a mask of sort. So if any file has pain in the filename it is excluded from Resharper code-wide analysis. Currently when I start my project it causes it to freeze when Resharper runs.

Upvotes: 0

Views: 385

Answers (2)

JARRRRG
JARRRRG

Reputation: 926

enter image description hereIn newer versions of Resharper you can skip third-party code. This is the information passed to me by one of the R# developers.

Resharper -> Code Inspection -> Generated Code

Upvotes: 2

Twisted Mentat
Twisted Mentat

Reputation: 432

In the options under Code Inspection -> Settings -> File masks you should be able to set any string and use the wildcard * at the beginning and end to match any filename with that string.

I just tried it in a solution using *service* and ReSharper promptly stopped analyzing the ResultService.cs file I had open.

Upvotes: 0

Related Questions