1

Kindly sugest a way to do code analysis of a particular shelvset (or only checked out / modified code) in visual studio. No luck using google.

Karthikeyan
  • 173
  • 4
  • 18

2 Answers2

2

You could either request review for a pending change or find the particular shelveset and then request review. check the screenshot below:

enter image description here

Cece Dong - MSFT
  • 29,631
  • 1
  • 24
  • 39
  • Correct. But before request to review someone, i just want to run code analysis myself for pendig changes or shelvset. – Karthikeyan Aug 07 '18 at 09:22
  • 1
    In VS, you can only run code analysis manually on a project or the solution by default, on the `Analyz`e menu, click `Run Code Analysis` on*ProjectName*. You can check this extension to see whether it meets your requirement: https://marketplace.visualstudio.com/items?itemName=SonarSource.SonarLintforVisualStudio2017&gclid=EAIaIQobChMIr52fu8_a3AIV04yPCh12gw7WEAAYASAAEgLoLfD_BwE – Cece Dong - MSFT Aug 07 '18 at 09:30
1

You can use TFS build, run the code analysis on the MS Build task and queue the build for specific shelveset.

  • Create an empty TFS Build, add MS Build Task and put the argument: /p:RunCodeAnalysis=true enter image description here
  • Queue the build and choose a Shelveset. enter image description here
Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114