1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-22 19:18:47 +00:00

Suppress CA1019, false positive

CA1019 wants us to expose the parameter as a property, but this value is concatenated to the aliases list which conglomerates all aliases - including the first parameter - into one list
This commit is contained in:
Oliver Booth 2022-11-30 18:59:01 +00:00
parent f846b43680
commit a90d2ccc7f
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -1,4 +1,4 @@
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
namespace VpSharp.Commands.Attributes; namespace VpSharp.Commands.Attributes;
@ -23,7 +23,9 @@ public sealed class AliasesAttribute : Attribute
/// -or- /// -or-
/// <para>An element in <paramref name="aliases" /> is null, empty, or consists of only whitespace.</para> /// <para>An element in <paramref name="aliases" /> is null, empty, or consists of only whitespace.</para>
/// </exception> /// </exception>
#pragma warning disable CA1019
public AliasesAttribute(string alias, params string[] aliases) public AliasesAttribute(string alias, params string[] aliases)
#pragma warning restore CA1019
{ {
ArgumentNullException.ThrowIfNull(alias); ArgumentNullException.ThrowIfNull(alias);
ArgumentNullException.ThrowIfNull(aliases); ArgumentNullException.ThrowIfNull(aliases);