-
Notifications
You must be signed in to change notification settings - Fork 70
/
GlobalSuppressions.cs
18 lines (15 loc) · 2.74 KB
/
GlobalSuppressions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) Barry Dorrans. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMessage("Performance", "CA1812:Avoid uninstantiated internal classes", Justification = "Instantiated via BasicAuthenticationExtensions.", Scope = "type", Target = "~T:idunno.Authentication.Basic.BasicAuthenticationHandler")]
[assembly: SuppressMessage("Reliability", "CA2007:Do not directly await a Task", Justification = "Not applicable to .NET Core", Scope = "type", Target = "~T:idunno.Authentication.Basic.BasicAuthenticationHandler")]
[assembly: SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "Catching all exceptions on purpose", Scope = "member", Target = "~M:idunno.Authentication.Basic.BasicAuthenticationHandler.HandleAuthenticateAsync~System.Threading.Tasks.Task{Microsoft.AspNetCore.Authentication.AuthenticateResult}")]
[assembly: SuppressMessage("Globalization", "CA1303:Do not pass literals as localized parameters", Justification = "Error messages are not localized", Scope = "member", Target = "~M:idunno.Authentication.Basic.BasicAuthenticationHandler.HandleAuthenticateAsync~System.Threading.Tasks.Task{Microsoft.AspNetCore.Authentication.AuthenticateResult}")]
[assembly: SuppressMessage("Globalization", "CA1303:Do not pass literals as localized parameters", Justification = "Error messages are not localized", Scope = "member", Target = "~P:idunno.Authentication.Basic.BasicAuthenticationOptions.Realm")]
[assembly: SuppressMessage("Globalization", "CA1303:Do not pass literals as localized parameters", Justification = "Error messages are not localized", Scope = "member", Target = "~M:idunno.Authentication.Basic.BasicAuthenticationHandler.HandleChallengeAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties)~System.Threading.Tasks.Task")]
[assembly: SuppressMessage("Style", "IDE0057:Use range operator", Justification = "Range operator is only available in later language versions. Sticking to older language versions given we target netstandare2.0", Scope = "member", Target = "~M:idunno.Authentication.Basic.BasicAuthenticationHandler.HandleAuthenticateAsync~System.Threading.Tasks.Task{Microsoft.AspNetCore.Authentication.AuthenticateResult}")]
[assembly: SuppressMessage("Naming", "VSSpell001:Spell Check", Justification = "exclusion.dic doesn't work as this is is a compound word.", Scope = "namespace", Target = "~N:idunno.Authentication.Basic")]