Address S1168: Empty arrays and collections should be returned instead of null #916
Labels
Type/code-quality
Issue that affects code quality
Warn/breaking-change
There is a breaking change in the code
Address existing violations of Address S1168: Empty arrays and collections should be returned instead of null in the codebase and set severity to
Warning
inSteeltoe.Debug.ruleset
andSteeltoe.Release.ruleset
.To find existing violations, enable the rule (see above) and rebuild
src/Steeltoe.All.sln
to make them appear in the Output window.To address the violations, choose from the following on a case-by-case basis:
#pragma warning disable/restore
, preceded by a justification comment if not obviousRelated to #941 and #946.
The text was updated successfully, but these errors were encountered: