Refactoring conventions (#2677) #1417
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 extension:
src/PSRule/Commands/ExportConventionCommand.cs#L86
Dereference of a possibly null reference.
|
Build extension:
src/PSRule/Converters/Json/LockEntryIntegrityJsonConverter.cs#L34
The result of the expression is always 'false' since a value of type 'IntegrityAlgorithm' is never equal to 'null' of type 'IntegrityAlgorithm?'
|
Build extension:
src/PSRule/Pipeline/Dependencies/LockEntryIntegrity.cs#L25
Non-nullable property 'Hash' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
Build extension:
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.
|
Build extension:
src/PSRule/Rules/RuleRecord.cs#L30
Non-nullable property 'Tag' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
Build extension:
src/PSRule/Rules/RuleRecord.cs#L30
Non-nullable property 'Error' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
Build extension:
src/PSRule/Rules/RuleBlock.cs#L26
Non-nullable property 'Override' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
Build extension:
src/PSRule/Runtime/RunspaceContext.cs#L601
Dereference of a possibly null reference.
|
Build extension:
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 extension:
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)'.
|
Loading