Я экспериментирую с Visual Studio Code Remote. Я хочу использовать SonarScanner для анализа качества кода. Я следовал инструкциям и установил инструмент на хост, но когда я пытаюсь использовать его из контейнера, я получаю:
# dotnet sonarscanner -h
No executable found matching command "dotnet-sonarscanner"
На хосте:
$ dotnet sonarscanner -h
SonarScanner for MSBuild 4.7.1
Using the .NET Core version of the Scanner for MSBuild
Usage:
SonarScanner.MSBuild [begin|end] /key:project_key [/name:project_name] [/version:project_version] [/d:sonar.key=value] [/s:settings_file]
When executing the begin phase, at least the project key must be defined.
Other properties can dynamically be defined with '/d:'. For example, '/d:sonar.verbose=true'.
A settings file can be used to define properties. If no settings file path is given, the file SonarQube.Analysis.xml in the installation directory will be used.
Only the token should be passed during the end phase, if it was used during the begin phase.