diff --git a/starsky/build/helpers/SonarQube.cs b/starsky/build/helpers/SonarQube.cs index 68615d2d87..cbea362692 100644 --- a/starsky/build/helpers/SonarQube.cs +++ b/starsky/build/helpers/SonarQube.cs @@ -56,6 +56,7 @@ public static void InstallSonarTool(bool noUnitTest, bool noSonar) IReadOnlyDictionary; var toolList = DotNet($"tool list", rootDirectory, envs, null, true); + if ( toolList.Any(p => p.Text.Contains(SonarQubePackageName) && toolList.Any(p => p.Text.Contains(SonarQubePackageVersion))) ) { @@ -67,6 +68,7 @@ public static void InstallSonarTool(bool noUnitTest, bool noSonar) } Log.Information("Next: Create new manifest file"); + DotNet($"new tool-manifest --force", rootDirectory, envs, null, true); Log.Information("Next: Install Sonar tool"); @@ -226,6 +228,7 @@ public static bool SonarBegin(bool noUnitTest, bool noSonar, string branchName, $"**/prestorybook.js,**/vite.config.ts,**/.storybook/**,**/jest.setup.ts," + $"**/_bigimages-helper.js ") .Append($"/d:sonar.coverage.exclusions=**/build/*,**/build/helpers/*," + + "**/build/Constants/*," + "**/documentation/*," + "**/Interfaces/IQuery.cs," + $"**/setupTests.js,**/react-app-env.d.ts,**/service-worker.ts," +