Skip to content
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

Export docs when packing #2087

Merged
merged 2 commits into from
Oct 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,12 @@ dotnet_naming_style.pascal_case.capitalization = pascal_case
dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case
dotnet_naming_style.begins_with_i.capitalization = pascal_case

dotnet_diagnostic.CS1570.severity = warning
dotnet_diagnostic.CS1572.severity = warning
dotnet_diagnostic.CS1573.severity = warning
dotnet_diagnostic.CS1574.severity = warning
dotnet_diagnostic.CS1591.severity = warning
dotnet_diagnostic.CS1712.severity = warning
dotnet_diagnostic.CS1734.severity = warning
2 changes: 1 addition & 1 deletion src/Sarif/Baseline/ResultMatching/SarifLogResultMatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public SarifLogResultMatcher(
/// Helper function that accepts a single baseline and current SARIF log and matches them.
/// </summary>
/// <param name="previousLog">Array of SARIF logs representing the baseline run</param>
/// <param name="currentLogs">Array of SARIF logs representing the current run</param>
/// <param name="currentLog">Array of SARIF logs representing the current run</param>
/// <returns>A SARIF log with the merged set of results.</returns>
public SarifLog Match(SarifLog previousLog, SarifLog currentLog)
{
Expand Down
1 change: 1 addition & 0 deletions src/Sarif/Baseline/V2/WhatComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public static IEnumerable<WhatComponent> WhatProperties(this ExtractedResult res
/// <summary>
/// Match the 'What' properties of two ExtractedResults.
/// </summary>
/// <param name="left">ExtractedResult to match</param>
/// <param name="right">ExtractedResult to match</param>
/// <returns>True if *any* 'What' property matches, False otherwise</returns>
public static bool MatchesWhat(ExtractedResult left, ExtractedResult right, TrustMap trustMap = null)
Expand Down
1 change: 0 additions & 1 deletion src/Sarif/Core/ArtifactLocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public partial class ArtifactLocation
/// successfully reconstitute an absolute URI, it will return false
/// and populate 'resolvedUri' with null.
/// </summary>
/// <param name="fileLocation">The fileLocatio instance from which an absolute URI should be reconstructed, if possible.</param>
/// <param name="originalUriBaseIds">The original uri base id values associated with the tool run.</param>
/// <param name="resolvedUri">The reconstructed absolute URI or null (if an absolute URI cannot be reconstructed).</param>
/// <returns></returns>
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Core/SarifLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void Save(string sarifFilePath)
/// <summary>
/// Write a SARIF log to a destination stream.
/// </summary>
/// <param name="streamWriter">Stream to write SARIF to</param>
/// <param name="stream">Stream to write SARIF to</param>
public void Save(Stream stream)
{
using (StreamWriter streamWriter = new StreamWriter(stream))
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Core/StackFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public partial class StackFrame
/// <summary>
/// Creates a SARIF StackFrame instance from a .NET StackFrame instance
/// </summary>
/// <param name="stackTrace"></param>
/// <param name="dotNetStackFrame"></param>
/// <returns></returns>
public static StackFrame Create(System.Diagnostics.StackFrame dotNetStackFrame)
{
Expand Down
1 change: 1 addition & 0 deletions src/Sarif/IAnalysisLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public interface IAnalysisLogger
/// Log a simple message for display to users (which
/// will not be persisted to log files)
/// </summary>
/// <param name="verbose"></param>
/// <param name="message"></param>
void LogMessage(bool verbose, string message);
}
Expand Down
3 changes: 1 addition & 2 deletions src/Sarif/IResultLogWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public interface IResultLogWriter
/// results. A result might produce a new file object to be stored in run.files,
/// for example, so run.Files will not be persisted on initialization.
/// </summary>
/// <param name="id">A string that uniquely identifies a run.</param>
/// <param name="automationId">A global identifier for a run that permits correlation with a larger automation process.</param>
/// <param name="run"></param>
void Initialize(Run run);

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Processors/Generic/IFoldAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public interface IFoldAction<T> : IActionWrapper<T>
/// <summary>
/// Take an action on each sarif log, return the accumulated result.
/// </summary>
/// <param name="list">List to fold over</param>
/// <param name="collection">Collection to fold over</param>
/// <param name="accumulator">Accumulator to use.</param>
/// <returns>The accumulated result.</returns>
T Fold(IEnumerable<T> collection, T accumulator);
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Query/Evaluators/EvaluatorFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static class EvaluatorFactory
///
/// int[] set;
/// BitArray matches = new BitArray(set.Length);
// evaluator.Evaluate(set, matches);
/// evaluator.Evaluate(set, matches);
/// </example>
/// <param name="fieldType">Primitive type of array to build evaluator for</param>
/// <param name="term">Query term with comparison and constant to evaluate against array</param>
Expand Down
3 changes: 1 addition & 2 deletions src/Sarif/Writers/ResultLogJsonWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public ResultLogJsonWriter(JsonWriter jsonWriter)
/// Initializes the SARIF log by emitting properties and other constructs
/// sufficient to being populating a run with results.
/// </summary>
/// <param name="id">A string that uniquely identifies a run.</param>
/// <param name="automationId">A global identifier for a run that permits correlation with a larger automation process.</param>
/// <param name="run"></param>
public void Initialize(Run run)
{
if (run == null)
Expand Down
2 changes: 1 addition & 1 deletion src/WorkItems/FilingClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public FilingClient()
/// <summary>
/// Asynchronously file work items for the specified results.
/// </summary>
/// <param name="workItemFilingMetadata">
/// <param name="workItemModels">
/// Describes the work items to be filed.
/// </param>
/// <returns>
Expand Down
3 changes: 1 addition & 2 deletions src/WorkItems/IVssConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ internal interface IVssConnection: IDisposable
Task ConnectAsync(Uri accountUri, string personalAccessToken);

/// <summary>
/// Interface abstraction for VssConnection.GetClientAsync
/// Interface abstraction for VssConnection.GetClientAsync
/// </summary>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
Task<IWorkItemTrackingHttpClient> GetClientAsync();
}
Expand Down
1 change: 1 addition & 0 deletions src/build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<PropertyGroup Label="AssemblyAttributes">
Expand Down