-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating docs and fixing command #2181
Changes from 4 commits
6250141
82d8337
73e976f
fe64aae
5a8a0ca
f68e99e
5a22ed4
8a97d31
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,7 @@ function Invoke-DotNetBuild($solutionFileRelativePath) { | |
Write-Information "Building $solutionFileRelativePath..." | ||
|
||
$solutionFilePath = Join-Path $SourceRoot $solutionFileRelativePath | ||
& dotnet build $solutionFilePath --configuration $Configuration -v $BuildVerbosity --no-incremental | ||
& dotnet build $solutionFilePath --configuration $Configuration --verbosity $BuildVerbosity --no-incremental -bl | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
add binlog parameter |
||
|
||
if ($LASTEXITCODE -ne 0) { | ||
Exit-WithFailureMessage $ScriptName "Build of $solutionFilePath failed." | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -542,6 +542,9 @@ private SupportedPlatform GetCurrentRunningOS() | |
DefaultDriverOptions.CreateRuleSpecificOption(skimmer, DefaultDriverOptions.RuleEnabled); | ||
|
||
RuleEnabledState ruleEnabled = rootContext.Policy.GetProperty(ruleEnabledProperty); | ||
FailureLevel failureLevel = (ruleEnabled == RuleEnabledState.Default || ruleEnabled == RuleEnabledState.Disabled) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
generate failureLevel from the file. With that, we can replace our default value There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok! but we need more unit tests here, clearly. :) maybe yong can help? In reply to: 541631128 [](ancestors = 541631128) |
||
? default | ||
: (FailureLevel)Enum.Parse(typeof(FailureLevel), ruleEnabled.ToString()); | ||
|
||
if (ruleEnabled == RuleEnabledState.Disabled) | ||
{ | ||
|
@@ -555,6 +558,10 @@ private SupportedPlatform GetCurrentRunningOS() | |
// So disable it, but don't complain that the rule was explicitly disabled. | ||
disabledSkimmers.Add(skimmer.Id); | ||
} | ||
else if (skimmer.DefaultConfiguration.Level != failureLevel) | ||
{ | ||
skimmer.DefaultConfiguration.Level = failureLevel; | ||
} | ||
} | ||
|
||
if (disabledSkimmers.Count == skimmers.Count()) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using CommandLine; | ||
using System.Collections.Generic; | ||
using System.Reflection; | ||
|
||
using Microsoft.CodeAnalysis.Sarif.Driver; | ||
|
||
namespace Microsoft.CodeAnalysis.Sarif.Multitool | ||
{ | ||
public class ExportValidationConfigurationCommand : ExportConfigurationCommandBase | ||
{ | ||
public override IEnumerable<Assembly> DefaultPlugInAssemblies => new Assembly[] { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
fixing a null reference |
||
this.GetType().Assembly | ||
}; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our build is failing some times. This will help us investigate