Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,12 @@ dotnet_diagnostic.CA1851.severity = suggestion
# CA1861: Avoid constant arrays as arguments
dotnet_diagnostic.CA1861.severity = suggestion

# IDE0240: Nullable directive is redundant
dotnet_diagnostic.IDE0240.severity = suggestion

# IDE0241: Nullable directive is unnecessary
dotnet_diagnostic.IDE0241.severity = suggestion

# Workaround for https://github.com/dotnet/roslyn-analyzers/issues/5628
[Program.cs]
dotnet_diagnostic.ca1812.severity = none
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<AnalysisLevel>latest</AnalysisLevel>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Nullable>enable</Nullable>
</PropertyGroup>

<PropertyGroup Label="Package">
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.ComponentDetection.Common/Column.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

public class Column
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System.IO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System.Collections.Generic;
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.ComponentDetection.Common/DockerService.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System;
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.ComponentDetection.Common/MatchedFile.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System.IO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

using System.Runtime.CompilerServices;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class DetectorExecutionTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class DockerServiceImageExistsLocallyTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class DockerServiceInspectImageTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class DockerServiceSystemInfoTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class DockerServiceTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class DockerServiceTryPullImageTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class FailedParsingFileRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class GoGraphTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class GoReplaceTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class InvalidParseVersionTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxContainerDetectorImageDetectionFailed : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxContainerDetectorLayerAwareness : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxContainerDetectorMissingRepoNameAndTagRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxContainerDetectorMissingVersion : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxContainerDetectorUnsupportedOs : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxScannerSyftTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxScannerTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LoadComponentDetectorsTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class PipReportFailureTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class PipReportSkipTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class PipReportTypeTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

using System.Net;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class PypiMaxRetriesReachedTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

using System.Net;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class RustCrateDetectorTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class RustGraphTelemetryRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts.BcdeModels;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts.BcdeModels;

using Newtonsoft.Json;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts.BcdeModels;

using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts.BcdeModels;

using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts.BcdeModels;

using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts.BcdeModels;

/// <summary>Used to communicate Dependency Scope of Component.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts.BcdeModels;

using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts.BcdeModels;

public class DockerLayer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts.BcdeModels;

using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts.BcdeModels;

using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts.BcdeModels;

using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts.BcdeModels;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts;

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts;

using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts;

/// <summary>Class of detector, the names of which are converted into categories for all default detectors.</summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts;

public enum DockerReferenceKind
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts;

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
namespace Microsoft.ComponentDetection.Contracts;

using System.Collections.Generic;
Expand Down
Loading
Loading