Visual Studio Team Services (VSTS) Resharper Code Quality Automation

I have written a convenient build task to run the Resharper CLT against a visual studio online build. It will automatically fail the build if any code quality validations are found. The tool is free to install (and always will be) so please try it out!

https://marketplace.visualstudio.com/items?itemName=alanwales.resharper-code-analysis 

7 comments
Comment actions Permalink

I installed the extension in VSTS but it does not show in the available build tasks.  Does anyone now if there are additional steps required to be able to use the extension?

0
Comment actions Permalink

This runs the Resharper CLT really well, but I want to incorporate the results into the SonarQube runner however I need to know where the results file is created. Can you either expose the file path and name for the results.xml file OR please allow us to override the output file path and name.

0
Comment actions Permalink

Could you please post a link where we can submit issues, suggestions etc... And also list that on the marketplace page?

The tooltip for additional arguments is incorrect.

0
Comment actions Permalink

I'm trying to specify the InspectCode cache location but without success. I set "Additional arguments" to this:-

--caches-home=ReSharperCache

but the cache doesn't get set. The console output from the build task is this:-

Invoking InspectCode.exe using arguments "D:\buildagent\_work\615\s\MySolutionsln" /o:"D:\buildagent\_work\615\ReSharper.xml" 

It is missing my additional arguments. I have tried many variations but without success. Any idea how I can get this to work?

 

0
Comment actions Permalink

Alan, any update on when the issue when there is a space in the solution path will be fixed?

We are using this in VSTS.

I know Lennart posted a solution in the Review tab in the visual studio marketplace. However, I think his solution only works when running this in TFS and not VSTS.

Any help with this will be greatly appreciated.

0
Comment actions Permalink

Hi,

I get ItemNotFoundException for CodeInspection_9.xml file:

2018-05-03T05:08:20.8697803Z No pre-installed Resharper CLT was found, downloading the latest from nuget.org...
2018-05-03T05:08:44.4981487Z Resharper CLT downloaded
2018-05-03T05:08:44.5355725Z Inspecting code for "D:\a\1\s\NetCoreApp"
2018-05-03T05:08:44.5356269Z Invoking InspectCode.exe using arguments "D:\a\1\s\NetCoreApp" /o:"D:\a\1\a\JetBrains.ReSharper.CommandLineTools.2018.1.0\tools\Reports\CodeInspection_9.xml" /disable-settings-layers:SolutionPersonal
 
2018-05-03T05:08:56.8980764Z ##[error]System.Management.Automation.ItemNotFoundException: Cannot find path 'D:\a\1\a\JetBrains.ReSharper.CommandLineTools.2018.1.0\tools\Reports\CodeInspection_9.xml' because it does not exist.
 
0

Please sign in to leave a comment.