Hi,
I’m using SonarQube on large dotnet solution in Gitlab, everytime I build it my log excess the max limit because the solution has a lot of sonarqube warning, is it possible have quite mode? I don’t want to see the error on console
Hi,
I’m using SonarQube on large dotnet solution in Gitlab, everytime I build it my log excess the max limit because the solution has a lot of sonarqube warning, is it possible have quite mode? I don’t want to see the error on console
The warnings are logged by the compiler, so you can control the level of detailed by specifying the verbosity
in the msbuild / dotnet build command line
e.g. msbuild -v:minimal
The setting will apply to the whole build step - you can’t specify a separate verbosity level just for analysis issues.
@duncanp I’m using dotnet core on linux, so I only have access to dotnet build, but I’ve already tried it, but doesn’t work, the command I’m using:
/usr/bin/dotnet build /builds/carnext/backend/carnext-hydra/src/CarNext.Hydra.sln --configuration Release --no-restore --verbosity Quiet /property:AssemblyVersion=2.1.0.0 /property:FileVersion=2.1.0.0 /property:InformationalVersion=2.1.0-disable-sonar-output.1+331.Branch.feat-disable-sonar-output.Sha.cf00f04fd966092d7469b9e15332ce97aa13e241 /property:WarningLevel=0
Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:01:16.20
Now with SonarQube:
/usr/bin/dotnet build /builds/carnext/backend/carnext-hydra/src/CarNext.Hydra.sln --configuration Release --no-restore --verbosity Quiet /property:AssemblyVersion=2.1.0.0 /property:FileVersion=2.1.0.0 /property:InformationalVersion=2.1.0-disable-sonar-output.1+331.Branch.feat-disable-sonar-output.Sha.cf00f04fd966092d7469b9e15332ce97aa13e241 /property:WarningLevel=0
Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
/builds/carnext/backend/carnext-hydra/src/CarNext.Hydra.Constants/OrderStepDeadlineGroups.cs(7,32): warning S3887: Use an immutable collection or reduce the accessibility of the non-private readonly field 'DeadlineGroups. [/builds/carnext/backend/carnext-hydra/src/CarNext.Hydra.Constants/CarNext.Hydra.Constants.csproj]
...
Any help on this issue? The entire log is filled with messages
D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\Service References\ServiceReferences.xxx.xxx\xxx.cs(477,36): warning S5332: Using http protocol is insecure. Use https instead. (https://rules.sonarsource.com/csharp/RSPEC-5332) [D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\xxx.csproj]
D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\Service References\ServiceReferences.xxx.xxx\xxx.cs(479,140): warning S5332: Using http protocol is insecure. Use https instead. (https://rules.sonarsource.com/csharp/RSPEC-5332) [D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\xxx.csproj]
D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\Service References\ServiceReferences.xxx.xxx\xxx.cs(484,64): warning S5332: Using http protocol is insecure. Use https instead. (https://rules.sonarsource.com/csharp/RSPEC-5332) [D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\xxx.csproj]
D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\Service References\ServiceReferences.xxx.xxx\xxx.cs(485,36): warning S5332: Using http protocol is insecure. Use https instead. (https://rules.sonarsource.com/csharp/RSPEC-5332) [D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\xxx.csproj]
D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\Service References\ServiceReferences.xxx.xxx\xxx.cs(490,64): warning S5332: Using http protocol is insecure. Use https instead. (https://rules.sonarsource.com/csharp/RSPEC-5332) [D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\xxx.csproj]
D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\Service References\ServiceReferences.xxx.xxx\xxx.cs(491,33): warning S5332: Using http protocol is insecure. Use https instead. (https://rules.sonarsource.com/csharp/RSPEC-5332) [D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\xxx.csproj]
D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\Service References\ServiceReferences.xxx.xxx\xxx.cs(493,140): warning S5332: Using http protocol is insecure. Use https instead. (https://rules.sonarsource.com/csharp/RSPEC-5332) [D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\xxx.csproj]
D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\Service References\ServiceReferences.xxx.xxx\xxx.cs(499,64): warning S5332: Using http protocol is insecure. Use https instead. (https://rules.sonarsource.com/csharp/RSPEC-5332) [D:\GitLabRunner\builds\hsPKMZ3X\0\xxx\web\xxx\xxx.csproj]