Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 29df9b2

Browse files
committed
Suppress CA Error.
This class is instatiated by Octokit using reflection.
1 parent 41e0871 commit 29df9b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/GitHub.App/Services/EnterpriseCapabilitiesService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.ComponentModel.Composition;
3+
using System.Diagnostics.CodeAnalysis;
34
using System.Net.Http;
45
using System.Threading.Tasks;
56
using GitHub.Api;
@@ -64,6 +65,7 @@ private async Task<EnterpriseMeta> GetMetadata(IGitHubClient client)
6465
return response.Body;
6566
}
6667

68+
[SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Justification = "Created via Octokit reflection")]
6769
class EnterpriseMeta : Meta
6870
{
6971
public string InstalledVersion { get; private set; }

0 commit comments

Comments
 (0)