Skip to content

Commit

Permalink
add ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Mar 7, 2024
1 parent c483936 commit 4fc6d05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions starsky/build/helpers/SonarQube.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public static void InstallSonarTool(bool noUnitTest, bool noSonar)
IReadOnlyDictionary<string, string>;

var toolList = DotNet($"tool list", rootDirectory, envs, null, true);

if ( toolList.Any(p => p.Text.Contains(SonarQubePackageName)
&& toolList.Any(p => p.Text.Contains(SonarQubePackageVersion))) )
{
Expand All @@ -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");
Expand Down Expand Up @@ -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," +
Expand Down

0 comments on commit 4fc6d05

Please sign in to comment.