Inspections (.NET) analyze modified files

Hi all,

in our company, we want to add ReSharper analysis to our continuous integration (CI) builds.

The problem is that it takes too much time to anayse the whole solution.

My question is how could we analyse just de modified files, in order to improve the performance of our builds.

Thanks is advance!

4 comments
Comment actions Permalink

I run the Inspections on a nightly build.  Then it doesn't matter how long it takes.

0
Comment actions Permalink

Hi Nick,

this is obviously an alternative option, but if it's possible I'd like to introduce the inspection on my CI builds to be noticed and know the responsible of bad practices ASAP.

Thanks anyway for this answer.

0
Comment actions Permalink

Hi,

The inspections analysis is performed for the whole project, it is not possible to configure it to analyze only modified files.

During inspections analysis the temporary data needed to analyze (cache) is saved in checkout directory. This cache could be reused from build to build. So if new build revision is running on the same agent as previous one then cache will be rebuilt incrementally, which could help to improve performance.

0
Comment actions Permalink

Hi Alina,

Thanks for your answer.
Currently I'm working in another project. But I'll go back on this early. Then I'll try to use the las build cache and see if the performance improvement is enough to our CI or not.

Thank you again.

0

Please sign in to leave a comment.