From eb5d14cfdc1516c2bae32459956218bafb1a1ed9 Mon Sep 17 00:00:00 2001 From: Haacked Date: Tue, 4 Aug 2015 21:12:37 -0700 Subject: [PATCH] Organize usings and remove unused --- .../Clients/IObservableAssigneesClient.cs | 1 - .../Clients/IObservableDeploymentStatusClient.cs | 2 -- Octokit.Reactive/Clients/IObservableFeedsClient.cs | 7 +------ .../Clients/IObservableFollowersClient.cs | 4 ---- .../Clients/IObservableRepoCollaboratorsClient.cs | 1 - .../Clients/IObservableRepositoryContentsClient.cs | 1 - .../IObservableRepositoryDeployKeysClient.cs | 4 ---- .../Clients/ObservableAssigneesClient.cs | 1 - .../Clients/ObservableDeploymentStatusClient.cs | 4 ++-- .../Clients/ObservableDeploymentsClient.cs | 4 ++-- Octokit.Reactive/Clients/ObservableFeedsClient.cs | 1 - Octokit.Reactive/Clients/ObservableGistsClient.cs | 3 +-- Octokit.Reactive/Clients/ObservableOauthClient.cs | 1 - .../Clients/ObservableRepoCollaboratorsClient.cs | 1 - .../Clients/ObservableRepositoryContentsClient.cs | 1 - .../ObservableRepositoryDeployKeysClient.cs | 4 ---- .../Clients/ObservableStarredClient.cs | 1 - .../Clients/ObservableUserEmailsClient.cs | 6 +++--- .../Clients/ObservableWatchedClient.cs | 1 - Octokit/Clients/ApiPagination.cs | 4 ++-- Octokit/Clients/AssigneesClient.cs | 1 - Octokit/Clients/AuthorizationsClient.cs | 3 +-- Octokit/Clients/GistsClient.cs | 1 - Octokit/Clients/IAuthorizationsClient.cs | 6 ++---- Octokit/Clients/IMiscellaneousClient.cs | 1 + Octokit/Clients/IOrganizationsClient.cs | 1 + Octokit/Clients/IReleasesClient.cs | 3 ++- Octokit/Clients/IRepoCollaboratorsClient.cs | 1 + Octokit/Clients/IRepositoriesClient.cs | 5 ++--- Octokit/Clients/ITeamsClient.cs | 4 ++-- Octokit/Clients/IssuesEventsClient.cs | 1 + Octokit/Clients/OrganizationsClient.cs | 2 +- Octokit/Clients/PullRequestsClient.cs | 1 - Octokit/Clients/ReleasesClient.cs | 1 + Octokit/Clients/RepoCollaboratorsClient.cs | 2 +- Octokit/Clients/RepositoriesClient.cs | 7 +++---- Octokit/Clients/RepositoryDeployKeysClient.cs | 2 +- Octokit/Clients/SshKeysClient.cs | 1 + Octokit/Clients/TeamsClient.cs | 2 +- Octokit/Exceptions/RepositoryFormatException.cs | 3 --- Octokit/Helpers/ApiExtensions.cs | 2 +- Octokit/Helpers/EnumExtensions.cs | 1 - Octokit/Helpers/HttpClientExtensions.cs | 3 +-- Octokit/Helpers/IApiPagination.cs | 2 +- Octokit/Helpers/StringExtensions.cs | 1 - Octokit/Http/RateLimit.cs | 4 ++-- Octokit/Http/SimpleJsonSerializer.cs | 1 - Octokit/IGitHubClient.cs | 4 +--- Octokit/Models/Request/EditRepositoryHook.cs | 4 ++-- Octokit/Models/Request/NewGist.cs | 5 ++--- Octokit/Models/Request/NewRepositoryHook.cs | 4 ++-- Octokit/Models/Request/NewTree.cs | 1 - Octokit/Models/Request/Permission.cs | 5 ----- Octokit/Models/Request/PublicRepositoryRequest.cs | 4 ---- Octokit/Models/Request/RequestParameters.cs | 6 +++--- Octokit/Models/Request/SearchIssuesRequest.cs | 12 ++++++------ Octokit/Models/Request/SearchQualifierOperator.cs | 8 +------- .../Models/Request/SearchRepositoriesRequest.cs | 4 ++-- Octokit/Models/Request/SearchUsersRequest.cs | 6 +++--- Octokit/Models/Response/Activity.cs | 1 - .../Models/Response/ApplicationAuthorization.cs | 2 -- Octokit/Models/Response/CommitComment.cs | 4 ---- Octokit/Models/Response/DeployKey.cs | 4 ---- Octokit/Models/Response/EventInfo.cs | 3 +-- Octokit/Models/Response/Feed.cs | 2 -- Octokit/Models/Response/Issue.cs | 2 -- Octokit/Models/Response/MiscellaneousRateLimit.cs | 4 ---- Octokit/Models/Response/PullRequestFile.cs | 4 ---- Octokit/Models/Response/RepositoryContributor.cs | 2 -- Octokit/Models/Response/ResourceRateLimit.cs | 2 -- Octokit/Models/Response/SearchResult.cs | 1 - Octokit/Models/Response/TreeResponse.cs | 1 - Octokit/SimpleJson.cs | 14 +++++++------- 73 files changed, 68 insertions(+), 155 deletions(-) diff --git a/Octokit.Reactive/Clients/IObservableAssigneesClient.cs b/Octokit.Reactive/Clients/IObservableAssigneesClient.cs index c1de2265..b4be296d 100644 --- a/Octokit.Reactive/Clients/IObservableAssigneesClient.cs +++ b/Octokit.Reactive/Clients/IObservableAssigneesClient.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; namespace Octokit.Reactive { diff --git a/Octokit.Reactive/Clients/IObservableDeploymentStatusClient.cs b/Octokit.Reactive/Clients/IObservableDeploymentStatusClient.cs index 50d99af6..55d4ea6e 100644 --- a/Octokit.Reactive/Clients/IObservableDeploymentStatusClient.cs +++ b/Octokit.Reactive/Clients/IObservableDeploymentStatusClient.cs @@ -1,6 +1,4 @@ using System; -using System.Reactive.Threading.Tasks; -using Octokit.Reactive.Internal; namespace Octokit.Reactive { diff --git a/Octokit.Reactive/Clients/IObservableFeedsClient.cs b/Octokit.Reactive/Clients/IObservableFeedsClient.cs index 10bb0305..681334da 100644 --- a/Octokit.Reactive/Clients/IObservableFeedsClient.cs +++ b/Octokit.Reactive/Clients/IObservableFeedsClient.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Octokit.Reactive { @@ -21,8 +17,7 @@ namespace Octokit.Reactive /// http://developer.github.com/v3/activity/feeds/#list-feeds /// /// All the public s for the particular user. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")] IObservable GetFeeds(); } -} \ No newline at end of file +} diff --git a/Octokit.Reactive/Clients/IObservableFollowersClient.cs b/Octokit.Reactive/Clients/IObservableFollowersClient.cs index b867e970..46a38fc1 100644 --- a/Octokit.Reactive/Clients/IObservableFollowersClient.cs +++ b/Octokit.Reactive/Clients/IObservableFollowersClient.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Reactive; -using System.Text; -using System.Threading.Tasks; namespace Octokit.Reactive { diff --git a/Octokit.Reactive/Clients/IObservableRepoCollaboratorsClient.cs b/Octokit.Reactive/Clients/IObservableRepoCollaboratorsClient.cs index 1119ad0b..07a2ebda 100644 --- a/Octokit.Reactive/Clients/IObservableRepoCollaboratorsClient.cs +++ b/Octokit.Reactive/Clients/IObservableRepoCollaboratorsClient.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Reactive; namespace Octokit.Reactive diff --git a/Octokit.Reactive/Clients/IObservableRepositoryContentsClient.cs b/Octokit.Reactive/Clients/IObservableRepositoryContentsClient.cs index 60a2cd71..a329ba24 100644 --- a/Octokit.Reactive/Clients/IObservableRepositoryContentsClient.cs +++ b/Octokit.Reactive/Clients/IObservableRepositoryContentsClient.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Reactive; namespace Octokit.Reactive diff --git a/Octokit.Reactive/Clients/IObservableRepositoryDeployKeysClient.cs b/Octokit.Reactive/Clients/IObservableRepositoryDeployKeysClient.cs index 5ec11405..e7146a10 100644 --- a/Octokit.Reactive/Clients/IObservableRepositoryDeployKeysClient.cs +++ b/Octokit.Reactive/Clients/IObservableRepositoryDeployKeysClient.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Reactive; -using System.Text; -using System.Threading.Tasks; namespace Octokit.Reactive { diff --git a/Octokit.Reactive/Clients/ObservableAssigneesClient.cs b/Octokit.Reactive/Clients/ObservableAssigneesClient.cs index 65813404..63fe37d7 100644 --- a/Octokit.Reactive/Clients/ObservableAssigneesClient.cs +++ b/Octokit.Reactive/Clients/ObservableAssigneesClient.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Reactive.Threading.Tasks; using Octokit.Reactive.Internal; diff --git a/Octokit.Reactive/Clients/ObservableDeploymentStatusClient.cs b/Octokit.Reactive/Clients/ObservableDeploymentStatusClient.cs index 893904cc..08598349 100644 --- a/Octokit.Reactive/Clients/ObservableDeploymentStatusClient.cs +++ b/Octokit.Reactive/Clients/ObservableDeploymentStatusClient.cs @@ -1,6 +1,6 @@ -using Octokit.Reactive.Internal; -using System; +using System; using System.Reactive.Threading.Tasks; +using Octokit.Reactive.Internal; namespace Octokit.Reactive.Clients { diff --git a/Octokit.Reactive/Clients/ObservableDeploymentsClient.cs b/Octokit.Reactive/Clients/ObservableDeploymentsClient.cs index c99ca2fa..3d2ab9f1 100644 --- a/Octokit.Reactive/Clients/ObservableDeploymentsClient.cs +++ b/Octokit.Reactive/Clients/ObservableDeploymentsClient.cs @@ -1,6 +1,6 @@ -using Octokit.Reactive.Internal; -using System; +using System; using System.Reactive.Threading.Tasks; +using Octokit.Reactive.Internal; namespace Octokit.Reactive.Clients { diff --git a/Octokit.Reactive/Clients/ObservableFeedsClient.cs b/Octokit.Reactive/Clients/ObservableFeedsClient.cs index f7f88728..12f2f166 100644 --- a/Octokit.Reactive/Clients/ObservableFeedsClient.cs +++ b/Octokit.Reactive/Clients/ObservableFeedsClient.cs @@ -1,6 +1,5 @@ using System; using System.Reactive.Threading.Tasks; -using Octokit.Reactive.Internal; namespace Octokit.Reactive { diff --git a/Octokit.Reactive/Clients/ObservableGistsClient.cs b/Octokit.Reactive/Clients/ObservableGistsClient.cs index f7539fa3..c5e2dd5f 100644 --- a/Octokit.Reactive/Clients/ObservableGistsClient.cs +++ b/Octokit.Reactive/Clients/ObservableGistsClient.cs @@ -1,7 +1,6 @@ using System; -using System.Reactive.Threading.Tasks; using System.Reactive; -using System.Net; +using System.Reactive.Threading.Tasks; using Octokit.Reactive.Internal; namespace Octokit.Reactive diff --git a/Octokit.Reactive/Clients/ObservableOauthClient.cs b/Octokit.Reactive/Clients/ObservableOauthClient.cs index db62a7e1..feb9f47d 100644 --- a/Octokit.Reactive/Clients/ObservableOauthClient.cs +++ b/Octokit.Reactive/Clients/ObservableOauthClient.cs @@ -1,5 +1,4 @@ using System; -using System.Reactive.Linq; using System.Reactive.Threading.Tasks; namespace Octokit.Reactive diff --git a/Octokit.Reactive/Clients/ObservableRepoCollaboratorsClient.cs b/Octokit.Reactive/Clients/ObservableRepoCollaboratorsClient.cs index 2db6b66a..cf5f2a0e 100644 --- a/Octokit.Reactive/Clients/ObservableRepoCollaboratorsClient.cs +++ b/Octokit.Reactive/Clients/ObservableRepoCollaboratorsClient.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Reactive; using System.Reactive.Threading.Tasks; using Octokit.Reactive.Internal; diff --git a/Octokit.Reactive/Clients/ObservableRepositoryContentsClient.cs b/Octokit.Reactive/Clients/ObservableRepositoryContentsClient.cs index 177c5ada..da864190 100644 --- a/Octokit.Reactive/Clients/ObservableRepositoryContentsClient.cs +++ b/Octokit.Reactive/Clients/ObservableRepositoryContentsClient.cs @@ -1,7 +1,6 @@ using System; using System.Reactive.Threading.Tasks; using Octokit.Reactive.Internal; -using System.Collections.Generic; namespace Octokit.Reactive { diff --git a/Octokit.Reactive/Clients/ObservableRepositoryDeployKeysClient.cs b/Octokit.Reactive/Clients/ObservableRepositoryDeployKeysClient.cs index 282ba1b7..305ab1c2 100644 --- a/Octokit.Reactive/Clients/ObservableRepositoryDeployKeysClient.cs +++ b/Octokit.Reactive/Clients/ObservableRepositoryDeployKeysClient.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Reactive; using System.Reactive.Threading.Tasks; -using System.Text; -using System.Threading.Tasks; using Octokit.Reactive.Internal; namespace Octokit.Reactive diff --git a/Octokit.Reactive/Clients/ObservableStarredClient.cs b/Octokit.Reactive/Clients/ObservableStarredClient.cs index 0bc222db..233fa6de 100644 --- a/Octokit.Reactive/Clients/ObservableStarredClient.cs +++ b/Octokit.Reactive/Clients/ObservableStarredClient.cs @@ -1,6 +1,5 @@ using System; using System.Reactive.Threading.Tasks; - using Octokit.Reactive.Internal; namespace Octokit.Reactive diff --git a/Octokit.Reactive/Clients/ObservableUserEmailsClient.cs b/Octokit.Reactive/Clients/ObservableUserEmailsClient.cs index ba3df0fa..2a2d1071 100644 --- a/Octokit.Reactive/Clients/ObservableUserEmailsClient.cs +++ b/Octokit.Reactive/Clients/ObservableUserEmailsClient.cs @@ -1,8 +1,8 @@ -using System.Reactive; -using Octokit.Reactive.Internal; -using System; +using System; +using System.Reactive; using System.Reactive.Linq; using System.Reactive.Threading.Tasks; +using Octokit.Reactive.Internal; namespace Octokit.Reactive { diff --git a/Octokit.Reactive/Clients/ObservableWatchedClient.cs b/Octokit.Reactive/Clients/ObservableWatchedClient.cs index aecaf981..005e1a3c 100644 --- a/Octokit.Reactive/Clients/ObservableWatchedClient.cs +++ b/Octokit.Reactive/Clients/ObservableWatchedClient.cs @@ -1,6 +1,5 @@ using System; using System.Reactive.Threading.Tasks; - using Octokit.Reactive.Internal; namespace Octokit.Reactive diff --git a/Octokit/Clients/ApiPagination.cs b/Octokit/Clients/ApiPagination.cs index 6e326bc5..926e0dfa 100644 --- a/Octokit/Clients/ApiPagination.cs +++ b/Octokit/Clients/ApiPagination.cs @@ -1,11 +1,11 @@ using System; using System.Collections.Generic; using System.Globalization; +using System.Net; +using System.Threading.Tasks; #if NET_45 using System.Collections.ObjectModel; #endif -using System.Threading.Tasks; -using System.Net; namespace Octokit { diff --git a/Octokit/Clients/AssigneesClient.cs b/Octokit/Clients/AssigneesClient.cs index 110a37dc..f66b5dc1 100644 --- a/Octokit/Clients/AssigneesClient.cs +++ b/Octokit/Clients/AssigneesClient.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Net; using System.Threading.Tasks; namespace Octokit diff --git a/Octokit/Clients/AuthorizationsClient.cs b/Octokit/Clients/AuthorizationsClient.cs index 716cfad1..b2dc2be3 100644 --- a/Octokit/Clients/AuthorizationsClient.cs +++ b/Octokit/Clients/AuthorizationsClient.cs @@ -1,8 +1,7 @@ -using System; +using System.Threading.Tasks; #if NET_45 using System.Collections.Generic; #endif -using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Clients/GistsClient.cs b/Octokit/Clients/GistsClient.cs index 96664c66..b31126f8 100644 --- a/Octokit/Clients/GistsClient.cs +++ b/Octokit/Clients/GistsClient.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Net; using System.Threading.Tasks; namespace Octokit diff --git a/Octokit/Clients/IAuthorizationsClient.cs b/Octokit/Clients/IAuthorizationsClient.cs index 8fb80bae..05ae8bea 100644 --- a/Octokit/Clients/IAuthorizationsClient.cs +++ b/Octokit/Clients/IAuthorizationsClient.cs @@ -1,10 +1,8 @@ - -using System; +using System.Diagnostics.CodeAnalysis; +using System.Threading.Tasks; #if NET_45 using System.Collections.Generic; #endif -using System.Diagnostics.CodeAnalysis; -using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Clients/IMiscellaneousClient.cs b/Octokit/Clients/IMiscellaneousClient.cs index 867aaa7e..d9bf495e 100644 --- a/Octokit/Clients/IMiscellaneousClient.cs +++ b/Octokit/Clients/IMiscellaneousClient.cs @@ -1,4 +1,5 @@ #if NET_45 +using System.Threading.Tasks; using System.Collections.Generic; #endif using System.Diagnostics.CodeAnalysis; diff --git a/Octokit/Clients/IOrganizationsClient.cs b/Octokit/Clients/IOrganizationsClient.cs index 2241ba54..6149fd9d 100644 --- a/Octokit/Clients/IOrganizationsClient.cs +++ b/Octokit/Clients/IOrganizationsClient.cs @@ -1,4 +1,5 @@ #if NET_45 +using System.Threading.Tasks; using System.Collections.Generic; #endif using System.Diagnostics.CodeAnalysis; diff --git a/Octokit/Clients/IReleasesClient.cs b/Octokit/Clients/IReleasesClient.cs index 742806ad..40910431 100644 --- a/Octokit/Clients/IReleasesClient.cs +++ b/Octokit/Clients/IReleasesClient.cs @@ -1,8 +1,9 @@ #if NET_45 +using System.Threading.Tasks; using System.Collections.Generic; #endif -using System.Threading.Tasks; using System.Diagnostics.CodeAnalysis; +using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Clients/IRepoCollaboratorsClient.cs b/Octokit/Clients/IRepoCollaboratorsClient.cs index cbe73f60..d128651d 100644 --- a/Octokit/Clients/IRepoCollaboratorsClient.cs +++ b/Octokit/Clients/IRepoCollaboratorsClient.cs @@ -1,4 +1,5 @@ #if NET_45 +using System.Threading.Tasks; using System.Collections.Generic; #endif using System.Threading.Tasks; diff --git a/Octokit/Clients/IRepositoriesClient.cs b/Octokit/Clients/IRepositoriesClient.cs index 99e0a012..c6774cd6 100644 --- a/Octokit/Clients/IRepositoriesClient.cs +++ b/Octokit/Clients/IRepositoriesClient.cs @@ -1,9 +1,8 @@ -using System; +using System.Diagnostics.CodeAnalysis; +using System.Threading.Tasks; #if NET_45 using System.Collections.Generic; #endif -using System.Diagnostics.CodeAnalysis; -using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Clients/ITeamsClient.cs b/Octokit/Clients/ITeamsClient.cs index 86c67011..45342768 100644 --- a/Octokit/Clients/ITeamsClient.cs +++ b/Octokit/Clients/ITeamsClient.cs @@ -1,9 +1,9 @@ using System; +using System.Diagnostics.CodeAnalysis; +using System.Threading.Tasks; #if NET_45 using System.Collections.Generic; #endif -using System.Threading.Tasks; -using System.Diagnostics.CodeAnalysis; namespace Octokit { diff --git a/Octokit/Clients/IssuesEventsClient.cs b/Octokit/Clients/IssuesEventsClient.cs index 836a2913..56a3b438 100644 --- a/Octokit/Clients/IssuesEventsClient.cs +++ b/Octokit/Clients/IssuesEventsClient.cs @@ -1,4 +1,5 @@ #if NET_45 +using System.Threading.Tasks; using System.Collections.Generic; #endif using System.Threading.Tasks; diff --git a/Octokit/Clients/OrganizationsClient.cs b/Octokit/Clients/OrganizationsClient.cs index 6f57c180..dad301a0 100644 --- a/Octokit/Clients/OrganizationsClient.cs +++ b/Octokit/Clients/OrganizationsClient.cs @@ -1,8 +1,8 @@ using System; +using System.Threading.Tasks; #if NET_45 using System.Collections.Generic; #endif -using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Clients/PullRequestsClient.cs b/Octokit/Clients/PullRequestsClient.cs index 90c035f1..3cce9f30 100644 --- a/Octokit/Clients/PullRequestsClient.cs +++ b/Octokit/Clients/PullRequestsClient.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Net; using System.Threading.Tasks; namespace Octokit diff --git a/Octokit/Clients/ReleasesClient.cs b/Octokit/Clients/ReleasesClient.cs index d832de92..7230af4a 100644 --- a/Octokit/Clients/ReleasesClient.cs +++ b/Octokit/Clients/ReleasesClient.cs @@ -1,4 +1,5 @@ #if NET_45 +using System.Threading.Tasks; using System.Collections.Generic; #endif using System.Threading.Tasks; diff --git a/Octokit/Clients/RepoCollaboratorsClient.cs b/Octokit/Clients/RepoCollaboratorsClient.cs index c0b8ac2f..69884d1d 100644 --- a/Octokit/Clients/RepoCollaboratorsClient.cs +++ b/Octokit/Clients/RepoCollaboratorsClient.cs @@ -1,8 +1,8 @@ #if NET_45 +using System.Threading.Tasks; using System.Collections.Generic; #endif using System.Threading.Tasks; -using System.Net; namespace Octokit { diff --git a/Octokit/Clients/RepositoriesClient.cs b/Octokit/Clients/RepositoriesClient.cs index 089da63d..996e5b08 100644 --- a/Octokit/Clients/RepositoriesClient.cs +++ b/Octokit/Clients/RepositoriesClient.cs @@ -1,11 +1,10 @@ using System; -using System.Globalization; +using System.Collections.ObjectModel; +using System.Linq; +using System.Threading.Tasks; #if NET_45 using System.Collections.Generic; #endif -using System.Threading.Tasks; -using System.Linq; -using System.Collections.ObjectModel; namespace Octokit { diff --git a/Octokit/Clients/RepositoryDeployKeysClient.cs b/Octokit/Clients/RepositoryDeployKeysClient.cs index d5cd397d..276f6ead 100644 --- a/Octokit/Clients/RepositoryDeployKeysClient.cs +++ b/Octokit/Clients/RepositoryDeployKeysClient.cs @@ -1,8 +1,8 @@ using System; +using System.Threading.Tasks; #if NET_45 using System.Collections.Generic; #endif -using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Clients/SshKeysClient.cs b/Octokit/Clients/SshKeysClient.cs index 64bccf26..19023dba 100644 --- a/Octokit/Clients/SshKeysClient.cs +++ b/Octokit/Clients/SshKeysClient.cs @@ -1,4 +1,5 @@ #if NET_45 +using System.Threading.Tasks; using System.Collections.Generic; #endif using System.Threading.Tasks; diff --git a/Octokit/Clients/TeamsClient.cs b/Octokit/Clients/TeamsClient.cs index 00235814..e001d4cc 100644 --- a/Octokit/Clients/TeamsClient.cs +++ b/Octokit/Clients/TeamsClient.cs @@ -1,9 +1,9 @@ using System; using System.Net; +using System.Threading.Tasks; #if NET_45 using System.Collections.Generic; #endif -using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Exceptions/RepositoryFormatException.cs b/Octokit/Exceptions/RepositoryFormatException.cs index 941a1669..67674f87 100644 --- a/Octokit/Exceptions/RepositoryFormatException.cs +++ b/Octokit/Exceptions/RepositoryFormatException.cs @@ -2,10 +2,7 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; -using System.Linq; using System.Runtime.Serialization; -using System.Text; -using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Helpers/ApiExtensions.cs b/Octokit/Helpers/ApiExtensions.cs index 032c7e3c..a1920aa0 100644 --- a/Octokit/Helpers/ApiExtensions.cs +++ b/Octokit/Helpers/ApiExtensions.cs @@ -1,10 +1,10 @@ using System; using System.Net; using System.Threading; +using System.Threading.Tasks; #if NET_45 using System.Collections.Generic; #endif -using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Helpers/EnumExtensions.cs b/Octokit/Helpers/EnumExtensions.cs index 15ac0640..ce39bb07 100644 --- a/Octokit/Helpers/EnumExtensions.cs +++ b/Octokit/Helpers/EnumExtensions.cs @@ -1,7 +1,6 @@ using System; using System.Diagnostics.CodeAnalysis; using System.Linq; -using System.Reflection; using Octokit.Internal; namespace Octokit diff --git a/Octokit/Helpers/HttpClientExtensions.cs b/Octokit/Helpers/HttpClientExtensions.cs index bbf6aafb..7fbb656e 100644 --- a/Octokit/Helpers/HttpClientExtensions.cs +++ b/Octokit/Helpers/HttpClientExtensions.cs @@ -1,5 +1,4 @@ -using System; -using System.Threading; +using System.Threading; using System.Threading.Tasks; using Octokit.Internal; diff --git a/Octokit/Helpers/IApiPagination.cs b/Octokit/Helpers/IApiPagination.cs index 532fe135..607a02f4 100644 --- a/Octokit/Helpers/IApiPagination.cs +++ b/Octokit/Helpers/IApiPagination.cs @@ -1,8 +1,8 @@ using System; +using System.Threading.Tasks; #if NET_45 using System.Collections.Generic; #endif -using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Helpers/StringExtensions.cs b/Octokit/Helpers/StringExtensions.cs index 670eddf2..2423756a 100644 --- a/Octokit/Helpers/StringExtensions.cs +++ b/Octokit/Helpers/StringExtensions.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Net; -using System.Reflection; using System.Text; using System.Text.RegularExpressions; diff --git a/Octokit/Http/RateLimit.cs b/Octokit/Http/RateLimit.cs index 1f7805e4..75c66bb2 100644 --- a/Octokit/Http/RateLimit.cs +++ b/Octokit/Http/RateLimit.cs @@ -53,14 +53,14 @@ namespace Octokit /// /// The date and time at which the current rate limit window resets /// - [ParameterAttribute(Key = "ignoreThisField")] + [Parameter(Key = "ignoreThisField")] public DateTimeOffset Reset { get; private set; } /// /// The date and time at which the current rate limit window resets - in UTC epoch seconds /// [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - [ParameterAttribute(Key = "reset")] + [Parameter(Key = "reset")] public long ResetAsUtcEpochSeconds { get { return Reset.ToUnixTime(); } } static long GetHeaderValueAsInt32Safe(IDictionary responseHeaders, string key) diff --git a/Octokit/Http/SimpleJsonSerializer.cs b/Octokit/Http/SimpleJsonSerializer.cs index bad16ccf..69380ce3 100644 --- a/Octokit/Http/SimpleJsonSerializer.cs +++ b/Octokit/Http/SimpleJsonSerializer.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; -using Octokit; using Octokit.Reflection; namespace Octokit.Internal diff --git a/Octokit/IGitHubClient.cs b/Octokit/IGitHubClient.cs index a828c83e..9c4a0218 100644 --- a/Octokit/IGitHubClient.cs +++ b/Octokit/IGitHubClient.cs @@ -1,6 +1,4 @@ -using Octokit.Internal; - -namespace Octokit +namespace Octokit { /// /// A Client for the GitHub API v3. You can read more about the api here: http://developer.github.com. diff --git a/Octokit/Models/Request/EditRepositoryHook.cs b/Octokit/Models/Request/EditRepositoryHook.cs index 5d2ce258..88973085 100644 --- a/Octokit/Models/Request/EditRepositoryHook.cs +++ b/Octokit/Models/Request/EditRepositoryHook.cs @@ -1,8 +1,8 @@ -using Octokit.Internal; -using System; +using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; +using Octokit.Internal; namespace Octokit { diff --git a/Octokit/Models/Request/NewGist.cs b/Octokit/Models/Request/NewGist.cs index 71b7fad4..ef4c81f6 100644 --- a/Octokit/Models/Request/NewGist.cs +++ b/Octokit/Models/Request/NewGist.cs @@ -1,7 +1,6 @@ -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; +using System; +using System.Collections.Generic; using System.Diagnostics; -using System; using System.Globalization; namespace Octokit diff --git a/Octokit/Models/Request/NewRepositoryHook.cs b/Octokit/Models/Request/NewRepositoryHook.cs index 508d8022..5276c0a4 100644 --- a/Octokit/Models/Request/NewRepositoryHook.cs +++ b/Octokit/Models/Request/NewRepositoryHook.cs @@ -1,8 +1,8 @@ -using Octokit.Internal; -using System; +using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; +using Octokit.Internal; namespace Octokit { diff --git a/Octokit/Models/Request/NewTree.cs b/Octokit/Models/Request/NewTree.cs index d88b177d..46ccbf58 100644 --- a/Octokit/Models/Request/NewTree.cs +++ b/Octokit/Models/Request/NewTree.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; using System.Globalization; namespace Octokit diff --git a/Octokit/Models/Request/Permission.cs b/Octokit/Models/Request/Permission.cs index 4a858a2a..c9de0fcf 100644 --- a/Octokit/Models/Request/Permission.cs +++ b/Octokit/Models/Request/Permission.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; - namespace Octokit { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix")] diff --git a/Octokit/Models/Request/PublicRepositoryRequest.cs b/Octokit/Models/Request/PublicRepositoryRequest.cs index d66fdb52..a8ee66a8 100644 --- a/Octokit/Models/Request/PublicRepositoryRequest.cs +++ b/Octokit/Models/Request/PublicRepositoryRequest.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Models/Request/RequestParameters.cs b/Octokit/Models/Request/RequestParameters.cs index b6857e75..04a8e06b 100644 --- a/Octokit/Models/Request/RequestParameters.cs +++ b/Octokit/Models/Request/RequestParameters.cs @@ -1,13 +1,13 @@ using System; -#if !PORTABLE -using System.Collections.Concurrent; -#endif using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Reflection; using Octokit.Internal; +#if !PORTABLE +using System.Collections.Concurrent; +#endif namespace Octokit { diff --git a/Octokit/Models/Request/SearchIssuesRequest.cs b/Octokit/Models/Request/SearchIssuesRequest.cs index bf18fb1c..5e26fa85 100644 --- a/Octokit/Models/Request/SearchIssuesRequest.cs +++ b/Octokit/Models/Request/SearchIssuesRequest.cs @@ -1,11 +1,11 @@ -using System.Collections.ObjectModel; -using System.Diagnostics; -using Octokit.Internal; -using System; +using System; using System.Collections.Generic; -using System.Linq; -using System.Globalization; +using System.Collections.ObjectModel; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Linq; +using Octokit.Internal; namespace Octokit { diff --git a/Octokit/Models/Request/SearchQualifierOperator.cs b/Octokit/Models/Request/SearchQualifierOperator.cs index 3b3d0f82..b37e866e 100644 --- a/Octokit/Models/Request/SearchQualifierOperator.cs +++ b/Octokit/Models/Request/SearchQualifierOperator.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Octokit +namespace Octokit { public enum SearchQualifierOperator { diff --git a/Octokit/Models/Request/SearchRepositoriesRequest.cs b/Octokit/Models/Request/SearchRepositoriesRequest.cs index e9d12d57..0ba83854 100644 --- a/Octokit/Models/Request/SearchRepositoriesRequest.cs +++ b/Octokit/Models/Request/SearchRepositoriesRequest.cs @@ -1,10 +1,10 @@ -using System.Diagnostics; -using Octokit.Internal; using System; using System.Collections.Generic; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; +using Octokit.Internal; namespace Octokit { diff --git a/Octokit/Models/Request/SearchUsersRequest.cs b/Octokit/Models/Request/SearchUsersRequest.cs index 5244043b..9fc966c4 100644 --- a/Octokit/Models/Request/SearchUsersRequest.cs +++ b/Octokit/Models/Request/SearchUsersRequest.cs @@ -1,7 +1,7 @@ -using System.Collections.ObjectModel; -using System.Diagnostics; -using System; +using System; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; diff --git a/Octokit/Models/Response/Activity.cs b/Octokit/Models/Response/Activity.cs index 7c3146e6..5d9d4047 100644 --- a/Octokit/Models/Response/Activity.cs +++ b/Octokit/Models/Response/Activity.cs @@ -2,7 +2,6 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; -using Octokit; namespace Octokit { diff --git a/Octokit/Models/Response/ApplicationAuthorization.cs b/Octokit/Models/Response/ApplicationAuthorization.cs index f48c7816..ba96244f 100644 --- a/Octokit/Models/Response/ApplicationAuthorization.cs +++ b/Octokit/Models/Response/ApplicationAuthorization.cs @@ -1,6 +1,4 @@ -using System; using System.Diagnostics; -using System.Globalization; namespace Octokit { diff --git a/Octokit/Models/Response/CommitComment.cs b/Octokit/Models/Response/CommitComment.cs index f2db8e87..8504ca16 100644 --- a/Octokit/Models/Response/CommitComment.cs +++ b/Octokit/Models/Response/CommitComment.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Models/Response/DeployKey.cs b/Octokit/Models/Response/DeployKey.cs index 7198587a..4da6b286 100644 --- a/Octokit/Models/Response/DeployKey.cs +++ b/Octokit/Models/Response/DeployKey.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Models/Response/EventInfo.cs b/Octokit/Models/Response/EventInfo.cs index 638aea37..7ade0f0f 100644 --- a/Octokit/Models/Response/EventInfo.cs +++ b/Octokit/Models/Response/EventInfo.cs @@ -1,8 +1,7 @@ using System; using System.Diagnostics; -using System.Globalization; using System.Diagnostics.CodeAnalysis; -using Octokit.Internal; +using System.Globalization; namespace Octokit { diff --git a/Octokit/Models/Response/Feed.cs b/Octokit/Models/Response/Feed.cs index c2b9dc85..9cd2921b 100644 --- a/Octokit/Models/Response/Feed.cs +++ b/Octokit/Models/Response/Feed.cs @@ -1,8 +1,6 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Globalization; -using System.Threading.Tasks; using Octokit.Internal; namespace Octokit diff --git a/Octokit/Models/Response/Issue.cs b/Octokit/Models/Response/Issue.cs index ae68304a..b282bb2d 100644 --- a/Octokit/Models/Response/Issue.cs +++ b/Octokit/Models/Response/Issue.cs @@ -1,9 +1,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; using System.Globalization; -using System.Linq; namespace Octokit { diff --git a/Octokit/Models/Response/MiscellaneousRateLimit.cs b/Octokit/Models/Response/MiscellaneousRateLimit.cs index 707e0d53..d21254ce 100644 --- a/Octokit/Models/Response/MiscellaneousRateLimit.cs +++ b/Octokit/Models/Response/MiscellaneousRateLimit.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Models/Response/PullRequestFile.cs b/Octokit/Models/Response/PullRequestFile.cs index efa97899..05c8ef43 100644 --- a/Octokit/Models/Response/PullRequestFile.cs +++ b/Octokit/Models/Response/PullRequestFile.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Octokit.Internal; namespace Octokit diff --git a/Octokit/Models/Response/RepositoryContributor.cs b/Octokit/Models/Response/RepositoryContributor.cs index 4c13ca04..eabbbe75 100644 --- a/Octokit/Models/Response/RepositoryContributor.cs +++ b/Octokit/Models/Response/RepositoryContributor.cs @@ -1,6 +1,4 @@ -using System; using System.Diagnostics; -using System.Globalization; namespace Octokit { diff --git a/Octokit/Models/Response/ResourceRateLimit.cs b/Octokit/Models/Response/ResourceRateLimit.cs index 99bd74f1..a83a39a5 100644 --- a/Octokit/Models/Response/ResourceRateLimit.cs +++ b/Octokit/Models/Response/ResourceRateLimit.cs @@ -2,8 +2,6 @@ using System.Diagnostics; using System.Globalization; -using Octokit.Helpers; - namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] diff --git a/Octokit/Models/Response/SearchResult.cs b/Octokit/Models/Response/SearchResult.cs index 4adff235..c3f22e28 100644 --- a/Octokit/Models/Response/SearchResult.cs +++ b/Octokit/Models/Response/SearchResult.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Globalization; - namespace Octokit.Internal { public abstract class SearchResult diff --git a/Octokit/Models/Response/TreeResponse.cs b/Octokit/Models/Response/TreeResponse.cs index f5cfacc4..21f82128 100644 --- a/Octokit/Models/Response/TreeResponse.cs +++ b/Octokit/Models/Response/TreeResponse.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; using System.Globalization; namespace Octokit diff --git a/Octokit/SimpleJson.cs b/Octokit/SimpleJson.cs index 1f428668..697c18c2 100644 --- a/Octokit/SimpleJson.cs +++ b/Octokit/SimpleJson.cs @@ -55,20 +55,20 @@ using System.CodeDom.Compiler; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -#if !SIMPLE_JSON_NO_LINQ_EXPRESSION -using System.Linq.Expressions; -#endif using System.ComponentModel; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -#if SIMPLE_JSON_DYNAMIC -using System.Dynamic; -#endif using System.Globalization; using System.Reflection; using System.Runtime.Serialization; using System.Text; using Octokit.Reflection; +#if !SIMPLE_JSON_NO_LINQ_EXPRESSION +using System.Linq.Expressions; +#endif +#if SIMPLE_JSON_DYNAMIC +using System.Dynamic; +#endif // ReSharper disable LoopCanBeConvertedToQuery // ReSharper disable RedundantExplicitArrayCreation