Refactoring conventions (#2679) #1421
Annotations
11 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Build module:
src/PSRule/Runtime/RunspaceContext.cs#L601
Dereference of a possibly null reference.
|
Build module:
src/PSRule/Runtime/RunspaceContext.cs#L596
Possible null reference argument for parameter 'targetObject' in 'RuleRecord.RuleRecord(string runId, ResourceId ruleId, string @ref, TargetObject targetObject, string targetName, string targetType, IResourceTags tag, RuleHelpInfo info, Hashtable field, RuleProperties @default, ISourceExtent extent, RuleOutcome outcome = RuleOutcome.None, RuleOutcomeReason reason = RuleOutcomeReason.None, RuleOverride? @OverRide = null)'.
|
Build module:
src/PSRule/Runtime/RunspaceContext.cs#L597
Possible null reference argument for parameter 'targetName' in 'RuleRecord.RuleRecord(string runId, ResourceId ruleId, string @ref, TargetObject targetObject, string targetName, string targetType, IResourceTags tag, RuleHelpInfo info, Hashtable field, RuleProperties @default, ISourceExtent extent, RuleOutcome outcome = RuleOutcome.None, RuleOutcomeReason reason = RuleOutcomeReason.None, RuleOverride? @OverRide = null)'.
|
Build module:
src/PSRule/Runtime/RunspaceContext.cs#L598
Possible null reference argument for parameter 'targetType' in 'RuleRecord.RuleRecord(string runId, ResourceId ruleId, string @ref, TargetObject targetObject, string targetName, string targetType, IResourceTags tag, RuleHelpInfo info, Hashtable field, RuleProperties @default, ISourceExtent extent, RuleOutcome outcome = RuleOutcome.None, RuleOutcomeReason reason = RuleOutcomeReason.None, RuleOverride? @OverRide = null)'.
|
Build module:
src/PSRule/Runtime/RunspaceContext.cs#L659
Possible null reference argument for parameter 'name' in 'bool ILanguageScopeSet.TryScope(string name, out ILanguageScope? scope)'.
|
Build module:
src/PSRule/Runtime/RunspaceContext.cs#L659
Dereference of a possibly null reference.
|
Build module:
src/PSRule/Runtime/RunspaceContext.cs#L659
Possible null reference argument for parameter 'name' in 'object? ILanguageScope.GetService(string name)'.
|
Build module:
src/PSRule/Runtime/RunspaceContext.cs#L802
Dereference of a possibly null reference.
|
Build module:
src/PSRule/Commands/ExportConventionCommand.cs#L86
Dereference of a possibly null reference.
|
Build module:
src/PSRule/Rules/RuleRecord.cs#L30
Non-nullable property 'Field' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
Loading