Question: I'm trying to read the output of the `repo diff` command but it is too long to be shown on the terminal, so I can't read the whole thing. Is there any solution like exporting the output in a file so I can read all the lines?

Answer: 
After some months of working with VSTS, my experience is as follows;

* Code Analysis warnings will show up on the build summary
* VSTS will only show the first 11 warnings
* Thus, if the Code Analysis warnings are printed *after* 11 build warnings, they won't show up.

We've started using [Build Quality Checks](https://marketplace.visualstudio.com/items?itemName=mspremier.BuildQualityChecks) to fail the build when there are more warnings compared to the baseline.
Yes, just part of warnings in build display in the Issues section of build summary. 

The workaround is that you can upload the code analysis result file (xml) through [Logging Commands](https://github.com/Microsoft/vsts-tasks/blob/master/docs/authoring/commands.md) (`##vso[task.uploadsummary]local file path`)and the content shall be added to build/release summary (Below Work items linked to associated changes section)

1. Add Powershell task
2. Call logging command to upload code analysis result

For example:

```
param(
[string]$p
)
Write-Host "##vso[task.uploadsummary]$p"

```

Arguments:

`-p $(Build.SourcesDirectory)\WebAppAzureProfile\bin\WebAppAzureProfile.dll.CodeAnalysisLog.xml`