diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/BcdeExecutionTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/BcdeExecutionTelemetryRecord.cs index 348586980..b7cab203b 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/BcdeExecutionTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/BcdeExecutionTelemetryRecord.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; using System; @@ -10,21 +9,21 @@ public class BcdeExecutionTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "BcdeExecution"; - public string Command { get; set; } + public string? Command { get; set; } public int? ExitCode { get; set; } public int? HiddenExitCode { get; set; } - public string UnhandledException { get; set; } + public string? UnhandledException { get; set; } - public string Arguments { get; set; } + public string? Arguments { get; set; } - public string ErrorMessage { get; set; } + public string? ErrorMessage { get; set; } - public string AgentOSMeaningfulDetails { get; set; } + public string? AgentOSMeaningfulDetails { get; set; } - public string AgentOSDescription { get; set; } + public string? AgentOSDescription { get; set; } public static async Task TrackAsync( Func> functionToTrack, diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/CommandLineInvocationTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/CommandLineInvocationTelemetryRecord.cs index d44ae611a..30383cbd2 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/CommandLineInvocationTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/CommandLineInvocationTelemetryRecord.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; using System; @@ -8,15 +7,15 @@ public class CommandLineInvocationTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "CommandLineInvocation"; - public string PathThatWasRan { get; set; } + public string? PathThatWasRan { get; set; } - public string Parameters { get; set; } + public string? Parameters { get; set; } public int? ExitCode { get; set; } - public string StandardError { get; set; } + public string? StandardError { get; set; } - public string UnhandledException { get; set; } + public string? UnhandledException { get; set; } internal void Track(CommandLineExecutionResult result, string path, string parameters) { diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DependencyGraphTranslationRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DependencyGraphTranslationRecord.cs index 4c662f2a4..bd73c55e3 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DependencyGraphTranslationRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DependencyGraphTranslationRecord.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; using System; @@ -7,7 +6,7 @@ public class DependencyGraphTranslationRecord : BaseDetectionTelemetryRecord { public override string RecordName => "DependencyGraphTranslationRecord"; - public string DetectorId { get; set; } + public string? DetectorId { get; set; } public TimeSpan? TimeToAddRoots { get; set; } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DetectedComponentScopeRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DetectedComponentScopeRecord.cs index e279d81d7..94c437277 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DetectedComponentScopeRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DetectedComponentScopeRecord.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; using System.Runtime.CompilerServices; diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DetectorExecutionTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DetectorExecutionTelemetryRecord.cs index c1e42c084..03abd3daf 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DetectorExecutionTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DetectorExecutionTelemetryRecord.cs @@ -1,11 +1,10 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class DetectorExecutionTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "DetectorExecution"; - public string DetectorId { get; set; } + public string? DetectorId { get; set; } public int? DetectedComponentCount { get; set; } @@ -15,7 +14,7 @@ public class DetectorExecutionTelemetryRecord : BaseDetectionTelemetryRecord public bool IsExperimental { get; set; } - public string ExperimentalInformation { get; set; } + public string? ExperimentalInformation { get; set; } - public string AdditionalTelemetryDetails { get; set; } + public string? AdditionalTelemetryDetails { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceImageExistsLocallyTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceImageExistsLocallyTelemetryRecord.cs index 33d02afb2..844f773a9 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceImageExistsLocallyTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceImageExistsLocallyTelemetryRecord.cs @@ -1,13 +1,12 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class DockerServiceImageExistsLocallyTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "DockerServiceImageExistsLocally"; - public string Image { get; set; } + public string? Image { get; set; } - public string ImageInspectResponse { get; set; } + public string? ImageInspectResponse { get; set; } - public string ExceptionMessage { get; set; } + public string? ExceptionMessage { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceInspectImageTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceInspectImageTelemetryRecord.cs index 0fdf66ad2..c04d287d4 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceInspectImageTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceInspectImageTelemetryRecord.cs @@ -1,17 +1,16 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class DockerServiceInspectImageTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "DockerServiceInspectImage"; - public string Image { get; set; } + public string? Image { get; set; } - public string BaseImageDigest { get; set; } + public string? BaseImageDigest { get; set; } - public string BaseImageRef { get; set; } + public string? BaseImageRef { get; set; } - public string ImageInspectResponse { get; set; } + public string? ImageInspectResponse { get; set; } - public string ExceptionMessage { get; set; } + public string? ExceptionMessage { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceSystemInfoTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceSystemInfoTelemetryRecord.cs index 6a6b6a33e..7991cd40c 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceSystemInfoTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceSystemInfoTelemetryRecord.cs @@ -1,11 +1,10 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class DockerServiceSystemInfoTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "DockerServiceSystemInfo"; - public string SystemInfo { get; set; } + public string? SystemInfo { get; set; } - public string ExceptionMessage { get; set; } + public string? ExceptionMessage { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceTelemetryRecord.cs index c87f4594b..e93e25681 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceTelemetryRecord.cs @@ -1,17 +1,16 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class DockerServiceTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "DockerService"; - public string Image { get; set; } + public string? Image { get; set; } - public string Command { get; set; } + public string? Command { get; set; } - public string Container { get; set; } + public string? Container { get; set; } - public string Stdout { get; set; } + public string? Stdout { get; set; } - public string Stderr { get; set; } + public string? Stderr { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceTryPullImageTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceTryPullImageTelemetryRecord.cs index a0bc47b3e..79e77779a 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceTryPullImageTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/DockerServiceTryPullImageTelemetryRecord.cs @@ -1,13 +1,12 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class DockerServiceTryPullImageTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "DockerServiceTryPullImage"; - public string Image { get; set; } + public string? Image { get; set; } - public string CreateImageProgress { get; set; } + public string? CreateImageProgress { get; set; } - public string ExceptionMessage { get; set; } + public string? ExceptionMessage { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/FailedParsingFileRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/FailedParsingFileRecord.cs index 8dbc7985f..f5e210ff2 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/FailedParsingFileRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/FailedParsingFileRecord.cs @@ -1,15 +1,14 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class FailedParsingFileRecord : BaseDetectionTelemetryRecord { public override string RecordName => "FailedParsingFile"; - public string DetectorId { get; set; } + public string? DetectorId { get; set; } - public string FilePath { get; set; } + public string? FilePath { get; set; } - public string ExceptionMessage { get; set; } + public string? ExceptionMessage { get; set; } - public string StackTrace { get; set; } + public string? StackTrace { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/GoGraphTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/GoGraphTelemetryRecord.cs index 2a6f25cd2..6639bbe6a 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/GoGraphTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/GoGraphTelemetryRecord.cs @@ -1,11 +1,10 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class GoGraphTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "GoGraph"; - public string ProjectRoot { get; set; } + public string? ProjectRoot { get; set; } public bool IsGoAvailable { get; set; } @@ -17,9 +16,9 @@ public class GoGraphTelemetryRecord : BaseDetectionTelemetryRecord public bool DidGoCliCommandFail { get; set; } - public string GoCliCommandError { get; set; } + public string? GoCliCommandError { get; set; } - public string GoModVersion { get; set; } + public string? GoModVersion { get; set; } - public string ExceptionMessage { get; set; } + public string? ExceptionMessage { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/GoReplaceTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/GoReplaceTelemetryRecord.cs index ce96c1b7e..0403f6c01 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/GoReplaceTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/GoReplaceTelemetryRecord.cs @@ -1,13 +1,12 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class GoReplaceTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "GoReplace"; - public string GoModPathAndVersion { get; set; } + public string? GoModPathAndVersion { get; set; } - public string GoModReplacement { get; set; } + public string? GoModReplacement { get; set; } - public string ExceptionMessage { get; set; } + public string? ExceptionMessage { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/InvalidParseVersionTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/InvalidParseVersionTelemetryRecord.cs index 22f5cc906..838fa52c8 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/InvalidParseVersionTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/InvalidParseVersionTelemetryRecord.cs @@ -1,15 +1,14 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class InvalidParseVersionTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "InvalidParseVersion"; - public string DetectorId { get; set; } + public string? DetectorId { get; set; } - public string FilePath { get; set; } + public string? FilePath { get; set; } - public string Version { get; set; } + public string? Version { get; set; } - public string MaxVersion { get; set; } + public string? MaxVersion { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorImageDetectionFailed.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorImageDetectionFailed.cs index ba9a15a90..46aae7758 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorImageDetectionFailed.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorImageDetectionFailed.cs @@ -1,15 +1,14 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class LinuxContainerDetectorImageDetectionFailed : BaseDetectionTelemetryRecord { public override string RecordName => "LinuxContainerDetectorImageDetectionFailed"; - public string ImageId { get; set; } + public string? ImageId { get; set; } - public string Message { get; set; } + public string? Message { get; set; } - public string ExceptionType { get; set; } + public string? ExceptionType { get; set; } - public string StackTrace { get; set; } + public string? StackTrace { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorLayerAwareness.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorLayerAwareness.cs index dc464c56d..cf39c768f 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorLayerAwareness.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorLayerAwareness.cs @@ -1,17 +1,16 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class LinuxContainerDetectorLayerAwareness : BaseDetectionTelemetryRecord { public override string RecordName => "LinuxContainerDetectorLayerAwareness"; - public string BaseImageRef { get; set; } + public string? BaseImageRef { get; set; } - public string BaseImageDigest { get; set; } + public string? BaseImageDigest { get; set; } public int? BaseImageLayerCount { get; set; } public int? LayerCount { get; set; } - public string BaseImageLayerMessage { get; set; } + public string? BaseImageLayerMessage { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorMissingRepoNameAndTagRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorMissingRepoNameAndTagRecord.cs index c92ac0451..6d64ae1a0 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorMissingRepoNameAndTagRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorMissingRepoNameAndTagRecord.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class LinuxContainerDetectorMissingRepoNameAndTagRecord : BaseDetectionTelemetryRecord diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorMissingVersion.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorMissingVersion.cs index 965ecfe36..a28f2d990 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorMissingVersion.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorMissingVersion.cs @@ -1,13 +1,12 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class LinuxContainerDetectorMissingVersion : BaseDetectionTelemetryRecord { public override string RecordName { get; } = "MissingVersion"; - public string Distribution { get; set; } + public string? Distribution { get; set; } - public string Release { get; set; } + public string? Release { get; set; } - public string[] PackageNames { get; set; } + public string[]? PackageNames { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorUnsupportedOs.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorUnsupportedOs.cs index 50d6ad352..415615306 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorUnsupportedOs.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorUnsupportedOs.cs @@ -1,9 +1,8 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class LinuxContainerDetectorUnsupportedOs : BaseDetectionTelemetryRecord { public override string RecordName => "LinuxContainerDetectorUnsupportedOs"; - public string Os { get; set; } + public string? Os { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxScannerSyftTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxScannerSyftTelemetryRecord.cs index 0a6c5e281..e52b0f60f 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxScannerSyftTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxScannerSyftTelemetryRecord.cs @@ -1,13 +1,12 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class LinuxScannerSyftTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "LinuxScannerSyftTelemetry"; - public string Components { get; set; } + public string? Components { get; set; } - public string Exception { get; set; } + public string? Exception { get; set; } - public string ComponentsRemoved { get; set; } + public string? ComponentsRemoved { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxScannerTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxScannerTelemetryRecord.cs index 647d4bea5..d3ad07ddd 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxScannerTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxScannerTelemetryRecord.cs @@ -1,19 +1,18 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class LinuxScannerTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "LinuxScannerTelemetry"; - public string ImageToScan { get; set; } + public string? ImageToScan { get; set; } - public string ScanStdOut { get; set; } + public string? ScanStdOut { get; set; } - public string ScanStdErr { get; set; } + public string? ScanStdErr { get; set; } - public string FailedDeserializingScannerOutput { get; set; } + public string? FailedDeserializingScannerOutput { get; set; } public bool SemaphoreFailure { get; set; } - public string ScannerVersion { get; set; } + public string? ScannerVersion { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LoadComponentDetectorsTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LoadComponentDetectorsTelemetryRecord.cs index 829286bf4..ce68a8a76 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LoadComponentDetectorsTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/LoadComponentDetectorsTelemetryRecord.cs @@ -1,9 +1,8 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class LoadComponentDetectorsTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "LoadComponentDetectors"; - public string DetectorIds { get; set; } + public string? DetectorIds { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/NuGetProjectAssetsTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/NuGetProjectAssetsTelemetryRecord.cs index a5ed51bbd..42dd490d6 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/NuGetProjectAssetsTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/NuGetProjectAssetsTelemetryRecord.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; using System; @@ -9,11 +8,11 @@ public class NuGetProjectAssetsTelemetryRecord : IDetectionTelemetryRecord, IDis public string RecordName => "NuGetProjectAssets"; - public string FoundTargets { get; set; } + public string? FoundTargets { get; set; } - public string UnhandledException { get; set; } + public string? UnhandledException { get; set; } - public string Frameworks { get; set; } + public string? Frameworks { get; set; } public void Dispose() { diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PipReportFailureTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PipReportFailureTelemetryRecord.cs index 2206f2a1b..bb68174f1 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PipReportFailureTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PipReportFailureTelemetryRecord.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class PipReportFailureTelemetryRecord : BaseDetectionTelemetryRecord @@ -7,5 +6,5 @@ public class PipReportFailureTelemetryRecord : BaseDetectionTelemetryRecord public int ExitCode { get; set; } - public string StdErr { get; set; } + public string? StdErr { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PipReportSkipTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PipReportSkipTelemetryRecord.cs index 69c3092bf..2032d314b 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PipReportSkipTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PipReportSkipTelemetryRecord.cs @@ -1,13 +1,12 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class PipReportSkipTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "PipReportSkip"; - public string SkipReason { get; set; } + public string? SkipReason { get; set; } - public string DetectorId { get; set; } + public string? DetectorId { get; set; } public int DetectorVersion { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PipReportTypeTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PipReportTypeTelemetryRecord.cs index 2b1c6b8a8..dd393bed0 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PipReportTypeTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PipReportTypeTelemetryRecord.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class PipReportTypeTelemetryRecord : BaseDetectionTelemetryRecord @@ -7,7 +6,7 @@ public class PipReportTypeTelemetryRecord : BaseDetectionTelemetryRecord public bool PreGenerated { get; set; } - public string FilePath { get; set; } + public string? FilePath { get; set; } public int PackageCount { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PypiFailureTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PypiFailureTelemetryRecord.cs index 528011ffc..bf70d5c7a 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PypiFailureTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PypiFailureTelemetryRecord.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; using System.Net; @@ -10,12 +9,12 @@ public class PypiFailureTelemetryRecord : BaseDetectionTelemetryRecord /// /// Gets or sets the package Name (ex: pyyaml). /// - public string Name { get; set; } + public string? Name { get; set; } /// /// Gets or sets the set of dependency specifications that constrain the overall dependency request (ex: ==1.0, >=2.0). /// - public string[] DependencySpecifiers { get; set; } + public string[]? DependencySpecifiers { get; set; } /// /// Gets or sets the status code of the last failed call. diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PypiMaxRetriesReachedTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PypiMaxRetriesReachedTelemetryRecord.cs index b403aa1b9..089e2ab17 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PypiMaxRetriesReachedTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PypiMaxRetriesReachedTelemetryRecord.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class PypiMaxRetriesReachedTelemetryRecord : BaseDetectionTelemetryRecord @@ -8,10 +7,10 @@ public class PypiMaxRetriesReachedTelemetryRecord : BaseDetectionTelemetryRecord /// /// Gets or sets the package Name (ex: pyyaml). /// - public string Name { get; set; } + public string? Name { get; set; } /// /// Gets or sets the set of dependency specifications that constrain the overall dependency request (ex: ==1.0, >=2.0). /// - public string[] DependencySpecifiers { get; set; } + public string[]? DependencySpecifiers { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PypiRetryTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PypiRetryTelemetryRecord.cs index 8e1b1aca2..a882f03f7 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PypiRetryTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/PypiRetryTelemetryRecord.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; using System.Net; @@ -10,12 +9,12 @@ public class PypiRetryTelemetryRecord : BaseDetectionTelemetryRecord /// /// Gets or sets the package Name (ex: pyyaml). /// - public string Name { get; set; } + public string? Name { get; set; } /// /// Gets or sets the set of dependency specifications that constrain the overall dependency request (ex: ==1.0, >=2.0). /// - public string[] DependencySpecifiers { get; set; } + public string[]? DependencySpecifiers { get; set; } /// /// Gets or sets the status code of the last failed call that caused the retry. diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/RustCrateDetectorTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/RustCrateDetectorTelemetryRecord.cs index dd0bc62a8..8e795f587 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/RustCrateDetectorTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/RustCrateDetectorTelemetryRecord.cs @@ -1,11 +1,10 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class RustCrateDetectorTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "RustCrateMalformedDependencies"; - public string PackageInfo { get; set; } + public string? PackageInfo { get; set; } - public string Dependencies { get; set; } + public string? Dependencies { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/RustDetectionTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/RustDetectionTelemetryRecord.cs index 708f3d9c7..85ffe6b92 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/RustDetectionTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/RustDetectionTelemetryRecord.cs @@ -1,11 +1,10 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class RustDetectionTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "RustDetection"; - public string DetectionMode { get; set; } + public string? DetectionMode { get; set; } public int SkippedCargoTomlCount { get; set; } @@ -25,5 +24,5 @@ public class RustDetectionTelemetryRecord : BaseDetectionTelemetryRecord public bool OwnershipMapAvailable { get; set; } - public string SkipRatio { get; set; } + public string? SkipRatio { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/RustGraphTelemetryRecord.cs b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/RustGraphTelemetryRecord.cs index 32e2ad0ad..2b2510287 100644 --- a/src/Microsoft.ComponentDetection.Common/Telemetry/Records/RustGraphTelemetryRecord.cs +++ b/src/Microsoft.ComponentDetection.Common/Telemetry/Records/RustGraphTelemetryRecord.cs @@ -1,21 +1,20 @@ -#nullable disable namespace Microsoft.ComponentDetection.Common.Telemetry.Records; public class RustGraphTelemetryRecord : BaseDetectionTelemetryRecord { public override string RecordName => "RustGraph"; - public string CargoTomlLocation { get; set; } + public string? CargoTomlLocation { get; set; } public bool WasRustFallbackStrategyUsed { get; set; } - public string FallbackReason { get; set; } + public string? FallbackReason { get; set; } public bool FallbackCargoLockFound { get; set; } - public string FallbackCargoLockLocation { get; set; } + public string? FallbackCargoLockLocation { get; set; } public bool DidRustCliCommandFail { get; set; } - public string RustCliCommandError { get; set; } + public string? RustCliCommandError { get; set; } } diff --git a/src/Microsoft.ComponentDetection.Contracts/BcdeModels/DependencyScope.cs b/src/Microsoft.ComponentDetection.Contracts/BcdeModels/DependencyScope.cs index 8d7cea963..bbb56ab97 100644 --- a/src/Microsoft.ComponentDetection.Contracts/BcdeModels/DependencyScope.cs +++ b/src/Microsoft.ComponentDetection.Contracts/BcdeModels/DependencyScope.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Contracts.BcdeModels; /// Used to communicate Dependency Scope of Component. diff --git a/src/Microsoft.ComponentDetection.Contracts/DetectorClass.cs b/src/Microsoft.ComponentDetection.Contracts/DetectorClass.cs index d67123ffd..becfa4f9f 100644 --- a/src/Microsoft.ComponentDetection.Contracts/DetectorClass.cs +++ b/src/Microsoft.ComponentDetection.Contracts/DetectorClass.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Contracts; /// Class of detector, the names of which are converted into categories for all default detectors. diff --git a/src/Microsoft.ComponentDetection.Contracts/ProcessingResultCode.cs b/src/Microsoft.ComponentDetection.Contracts/ProcessingResultCode.cs index 02dfd8797..9836d635f 100644 --- a/src/Microsoft.ComponentDetection.Contracts/ProcessingResultCode.cs +++ b/src/Microsoft.ComponentDetection.Contracts/ProcessingResultCode.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Contracts; /// Code used to communicate the state of a scan after completion. diff --git a/src/Microsoft.ComponentDetection.Contracts/TypedComponent/ComponentType.cs b/src/Microsoft.ComponentDetection.Contracts/TypedComponent/ComponentType.cs index ec324cc09..31b245d59 100644 --- a/src/Microsoft.ComponentDetection.Contracts/TypedComponent/ComponentType.cs +++ b/src/Microsoft.ComponentDetection.Contracts/TypedComponent/ComponentType.cs @@ -1,4 +1,3 @@ -#nullable disable namespace Microsoft.ComponentDetection.Contracts.TypedComponent; using System.Runtime.Serialization; diff --git a/src/Microsoft.ComponentDetection.Detectors/dotnet/DotNetComponentDetector.cs b/src/Microsoft.ComponentDetection.Detectors/dotnet/DotNetComponentDetector.cs index 0a0199ad2..3161372f4 100644 --- a/src/Microsoft.ComponentDetection.Detectors/dotnet/DotNetComponentDetector.cs +++ b/src/Microsoft.ComponentDetection.Detectors/dotnet/DotNetComponentDetector.cs @@ -1,6 +1,5 @@ namespace Microsoft.ComponentDetection.Detectors.DotNet; -#nullable enable using System; using System.Collections.Concurrent; using System.Collections.Generic; diff --git a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV1.cs b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV1.cs index f519629f3..9376af6aa 100644 --- a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV1.cs +++ b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV1.cs @@ -1,4 +1,3 @@ -#nullable enable namespace Microsoft.ComponentDetection.Detectors.Npm.Contracts; using System.Collections.Generic; diff --git a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV1Dependency.cs b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV1Dependency.cs index 92c47e71b..690ea9174 100644 --- a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV1Dependency.cs +++ b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV1Dependency.cs @@ -1,4 +1,3 @@ -#nullable enable namespace Microsoft.ComponentDetection.Detectors.Npm.Contracts; using System.Collections.Generic; diff --git a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV2.cs b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV2.cs index bef57a875..c06360cc6 100644 --- a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV2.cs +++ b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV2.cs @@ -1,4 +1,3 @@ -#nullable enable namespace Microsoft.ComponentDetection.Detectors.Npm.Contracts; using System.Collections.Generic; diff --git a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV2Dependency.cs b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV2Dependency.cs index f0522ef22..ae3fd4867 100644 --- a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV2Dependency.cs +++ b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV2Dependency.cs @@ -1,4 +1,3 @@ -#nullable enable namespace Microsoft.ComponentDetection.Detectors.Npm.Contracts; using System.Collections.Generic; diff --git a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV2Package.cs b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV2Package.cs index d668f0b3f..da67f44f6 100644 --- a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV2Package.cs +++ b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV2Package.cs @@ -1,4 +1,3 @@ -#nullable enable namespace Microsoft.ComponentDetection.Detectors.Npm.Contracts; using System.Collections.Generic; diff --git a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV3.cs b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV3.cs index 714f19203..cfddf52b7 100644 --- a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV3.cs +++ b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV3.cs @@ -1,4 +1,3 @@ -#nullable enable namespace Microsoft.ComponentDetection.Detectors.Npm.Contracts; using System.Collections.Generic; diff --git a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV3Package.cs b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV3Package.cs index 274e169d0..6f93f0891 100644 --- a/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV3Package.cs +++ b/src/Microsoft.ComponentDetection.Detectors/npm/Contracts/PackageLockV3Package.cs @@ -1,4 +1,3 @@ -#nullable enable namespace Microsoft.ComponentDetection.Detectors.Npm.Contracts; using System.Collections.Generic; diff --git a/src/Microsoft.ComponentDetection.Detectors/uv/UvDependency.cs b/src/Microsoft.ComponentDetection.Detectors/uv/UvDependency.cs index 41a87fb5c..6e35866c2 100644 --- a/src/Microsoft.ComponentDetection.Detectors/uv/UvDependency.cs +++ b/src/Microsoft.ComponentDetection.Detectors/uv/UvDependency.cs @@ -1,4 +1,3 @@ -#nullable enable namespace Microsoft.ComponentDetection.Detectors.Uv { public class UvDependency diff --git a/src/Microsoft.ComponentDetection.Detectors/uv/UvLock.cs b/src/Microsoft.ComponentDetection.Detectors/uv/UvLock.cs index c74fa149b..5000e1654 100644 --- a/src/Microsoft.ComponentDetection.Detectors/uv/UvLock.cs +++ b/src/Microsoft.ComponentDetection.Detectors/uv/UvLock.cs @@ -1,4 +1,3 @@ -#nullable enable namespace Microsoft.ComponentDetection.Detectors.Uv { using System; diff --git a/src/Microsoft.ComponentDetection.Detectors/uv/UvLockComponentDetector.cs b/src/Microsoft.ComponentDetection.Detectors/uv/UvLockComponentDetector.cs index eef4a9a97..04acd9740 100644 --- a/src/Microsoft.ComponentDetection.Detectors/uv/UvLockComponentDetector.cs +++ b/src/Microsoft.ComponentDetection.Detectors/uv/UvLockComponentDetector.cs @@ -1,5 +1,3 @@ -#nullable enable - namespace Microsoft.ComponentDetection.Detectors.Uv { using System; diff --git a/src/Microsoft.ComponentDetection.Detectors/uv/UvPackage.cs b/src/Microsoft.ComponentDetection.Detectors/uv/UvPackage.cs index 1e7e4a33d..eae14bbde 100644 --- a/src/Microsoft.ComponentDetection.Detectors/uv/UvPackage.cs +++ b/src/Microsoft.ComponentDetection.Detectors/uv/UvPackage.cs @@ -1,4 +1,3 @@ -#nullable enable namespace Microsoft.ComponentDetection.Detectors.Uv { using System.Collections.Generic; diff --git a/src/Microsoft.ComponentDetection.Detectors/uv/UvSource.cs b/src/Microsoft.ComponentDetection.Detectors/uv/UvSource.cs index 6c06b3625..53b975825 100644 --- a/src/Microsoft.ComponentDetection.Detectors/uv/UvSource.cs +++ b/src/Microsoft.ComponentDetection.Detectors/uv/UvSource.cs @@ -1,5 +1,3 @@ -#nullable enable - namespace Microsoft.ComponentDetection.Detectors.Uv { public class UvSource diff --git a/src/Microsoft.ComponentDetection.Detectors/yarn/Contracts/YarnBerryLockfileEntry.cs b/src/Microsoft.ComponentDetection.Detectors/yarn/Contracts/YarnBerryLockfileEntry.cs index 12f9ab14f..414a675b3 100644 --- a/src/Microsoft.ComponentDetection.Detectors/yarn/Contracts/YarnBerryLockfileEntry.cs +++ b/src/Microsoft.ComponentDetection.Detectors/yarn/Contracts/YarnBerryLockfileEntry.cs @@ -1,4 +1,3 @@ -#nullable enable namespace Microsoft.ComponentDetection.Detectors.Yarn.Contracts; using System.Collections.Generic;