diff --git a/Octokit.Reactive/Clients/IObservableStatisticsClient.cs b/Octokit.Reactive/Clients/IObservableStatisticsClient.cs index 551189a2..5bb9a8bc 100644 --- a/Octokit.Reactive/Clients/IObservableStatisticsClient.cs +++ b/Octokit.Reactive/Clients/IObservableStatisticsClient.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using Octokit.Response; namespace Octokit.Reactive { diff --git a/Octokit.Reactive/Clients/ObservableStatisticsClient.cs b/Octokit.Reactive/Clients/ObservableStatisticsClient.cs index 9905de1f..74acaa64 100644 --- a/Octokit.Reactive/Clients/ObservableStatisticsClient.cs +++ b/Octokit.Reactive/Clients/ObservableStatisticsClient.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Reactive.Threading.Tasks; -using Octokit.Response; namespace Octokit.Reactive { diff --git a/Octokit.Tests/Models/PunchCardTests.cs b/Octokit.Tests/Models/PunchCardTests.cs index b83efb34..2e6493ba 100644 --- a/Octokit.Tests/Models/PunchCardTests.cs +++ b/Octokit.Tests/Models/PunchCardTests.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; -using System.Collections.ObjectModel; -using Octokit.Response; +using Octokit; using Octokit.Tests.Helpers; using Xunit; diff --git a/Octokit.sln.DotSettings b/Octokit.sln.DotSettings index 202116c9..0992e585 100644 --- a/Octokit.sln.DotSettings +++ b/Octokit.sln.DotSettings @@ -258,7 +258,7 @@ II.2.12 <HandlesEvent /> </Patterns> - <Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /> + <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /> diff --git a/Octokit/Clients/ApiPagination.cs b/Octokit/Clients/ApiPagination.cs index 2eb51484..64d7cd03 100644 --- a/Octokit/Clients/ApiPagination.cs +++ b/Octokit/Clients/ApiPagination.cs @@ -34,7 +34,7 @@ namespace Octokit catch (NotFoundException) { throw new NotFoundException( - new ApiResponse() + new ApiResponse { StatusCode = HttpStatusCode.NotFound, Body = string.Format("{0} was not found.", uri.OriginalString) diff --git a/Octokit/Clients/AuthorizationsClient.cs b/Octokit/Clients/AuthorizationsClient.cs index a991f253..29cb8957 100644 --- a/Octokit/Clients/AuthorizationsClient.cs +++ b/Octokit/Clients/AuthorizationsClient.cs @@ -1,5 +1,4 @@ -using System; -#if NET_45 +#if NET_45 using System.Collections.Generic; #endif using System.Threading.Tasks; diff --git a/Octokit/Clients/DeploymentStatusClient.cs b/Octokit/Clients/DeploymentStatusClient.cs index fea3812c..6c329ef9 100644 --- a/Octokit/Clients/DeploymentStatusClient.cs +++ b/Octokit/Clients/DeploymentStatusClient.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Threading.Tasks; namespace Octokit diff --git a/Octokit/Clients/DeploymentsClient.cs b/Octokit/Clients/DeploymentsClient.cs index 226f3952..bb13b62b 100644 --- a/Octokit/Clients/DeploymentsClient.cs +++ b/Octokit/Clients/DeploymentsClient.cs @@ -53,7 +53,7 @@ namespace Octokit /// The owner of the repository /// The name of the repository /// A instance describing the new deployment to create - /// The created + /// The created public Task Create(string owner, string name, NewDeployment newDeployment) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); diff --git a/Octokit/Clients/FeedsClient.cs b/Octokit/Clients/FeedsClient.cs index 0580f5c6..b9d2531b 100644 --- a/Octokit/Clients/FeedsClient.cs +++ b/Octokit/Clients/FeedsClient.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; +using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Clients/FollowersClient.cs b/Octokit/Clients/FollowersClient.cs index 76f1851d..8c11aae0 100644 --- a/Octokit/Clients/FollowersClient.cs +++ b/Octokit/Clients/FollowersClient.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; +using System.Collections.Generic; using System.Net; -using System.Text; using System.Threading.Tasks; namespace Octokit diff --git a/Octokit/Clients/IDeploymentsClient.cs b/Octokit/Clients/IDeploymentsClient.cs index df577ff4..66115d48 100644 --- a/Octokit/Clients/IDeploymentsClient.cs +++ b/Octokit/Clients/IDeploymentsClient.cs @@ -34,7 +34,7 @@ namespace Octokit /// The owner of the repository /// The name of the repository /// A instance describing the new deployment to create - /// The created + /// The created Task Create(string owner, string name, NewDeployment newDeployment); /// diff --git a/Octokit/Clients/IFeedsClient.cs b/Octokit/Clients/IFeedsClient.cs index 245c2245..7bb6ea09 100644 --- a/Octokit/Clients/IFeedsClient.cs +++ b/Octokit/Clients/IFeedsClient.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using System.Threading.Tasks; +using System.Threading.Tasks; namespace Octokit { diff --git a/Octokit/Clients/IGistsClient.cs b/Octokit/Clients/IGistsClient.cs index 9ffdfbb5..c344c576 100644 --- a/Octokit/Clients/IGistsClient.cs +++ b/Octokit/Clients/IGistsClient.cs @@ -151,7 +151,7 @@ namespace Octokit /// http://developer.github.com/v3/gists/#unstar-a-gist /// /// The id of the gist - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Unstar")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Unstar")] Task Unstar(string id); /// diff --git a/Octokit/Clients/IMiscellaneousClient.cs b/Octokit/Clients/IMiscellaneousClient.cs index a8440d68..a7cb34eb 100644 --- a/Octokit/Clients/IMiscellaneousClient.cs +++ b/Octokit/Clients/IMiscellaneousClient.cs @@ -1,5 +1,4 @@ -using System; -#if NET_45 +#if NET_45 using System.Collections.Generic; #endif using System.Diagnostics.CodeAnalysis; diff --git a/Octokit/Clients/IRepoCollaboratorsClient.cs b/Octokit/Clients/IRepoCollaboratorsClient.cs index 3c379ba0..cbe73f60 100644 --- a/Octokit/Clients/IRepoCollaboratorsClient.cs +++ b/Octokit/Clients/IRepoCollaboratorsClient.cs @@ -1,7 +1,6 @@ #if NET_45 using System.Collections.Generic; #endif -using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; namespace Octokit diff --git a/Octokit/Clients/IStatisticsClient.cs b/Octokit/Clients/IStatisticsClient.cs index 24ce787b..ce5f83e3 100644 --- a/Octokit/Clients/IStatisticsClient.cs +++ b/Octokit/Clients/IStatisticsClient.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; -using Octokit.Response; namespace Octokit { diff --git a/Octokit/Clients/ITeamsClient.cs b/Octokit/Clients/ITeamsClient.cs index a2abafab..d944bb45 100644 --- a/Octokit/Clients/ITeamsClient.cs +++ b/Octokit/Clients/ITeamsClient.cs @@ -1,7 +1,6 @@ #if NET_45 using System.Collections.Generic; #endif -using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; namespace Octokit diff --git a/Octokit/Clients/IUsersClient.cs b/Octokit/Clients/IUsersClient.cs index 646373c2..607e849b 100644 --- a/Octokit/Clients/IUsersClient.cs +++ b/Octokit/Clients/IUsersClient.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; namespace Octokit diff --git a/Octokit/Clients/IssueCommentsClient.cs b/Octokit/Clients/IssueCommentsClient.cs index dc0c8846..72bdfbf9 100644 --- a/Octokit/Clients/IssueCommentsClient.cs +++ b/Octokit/Clients/IssueCommentsClient.cs @@ -1,5 +1,4 @@ - -using System.Collections.Generic; +using System.Collections.Generic; using System.Threading.Tasks; namespace Octokit diff --git a/Octokit/Clients/IssuesEventsClient.cs b/Octokit/Clients/IssuesEventsClient.cs index 53de9af9..c476683b 100644 --- a/Octokit/Clients/IssuesEventsClient.cs +++ b/Octokit/Clients/IssuesEventsClient.cs @@ -1,5 +1,4 @@ -using System; -#if NET_45 +#if NET_45 using System.Collections.Generic; #endif using System.Threading.Tasks; diff --git a/Octokit/Clients/IssuesLabelsClient.cs b/Octokit/Clients/IssuesLabelsClient.cs index ef80c7e2..ee640419 100644 --- a/Octokit/Clients/IssuesLabelsClient.cs +++ b/Octokit/Clients/IssuesLabelsClient.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Threading.Tasks; -using System.Linq; namespace Octokit { diff --git a/Octokit/Clients/NotificationsClient.cs b/Octokit/Clients/NotificationsClient.cs index b0bdc5ce..a1b339ea 100644 --- a/Octokit/Clients/NotificationsClient.cs +++ b/Octokit/Clients/NotificationsClient.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Threading.Tasks; namespace Octokit diff --git a/Octokit/Clients/OrganizationsClient.cs b/Octokit/Clients/OrganizationsClient.cs index b04ffb04..d1949bd9 100644 --- a/Octokit/Clients/OrganizationsClient.cs +++ b/Octokit/Clients/OrganizationsClient.cs @@ -1,5 +1,4 @@ -using System; -#if NET_45 +#if NET_45 using System.Collections.Generic; #endif using System.Threading.Tasks; diff --git a/Octokit/Clients/RepoCollaboratorsClient.cs b/Octokit/Clients/RepoCollaboratorsClient.cs index 6b508b98..9cd9304e 100644 --- a/Octokit/Clients/RepoCollaboratorsClient.cs +++ b/Octokit/Clients/RepoCollaboratorsClient.cs @@ -1,7 +1,6 @@ #if NET_45 using System.Collections.Generic; #endif -using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using System.Net; diff --git a/Octokit/Clients/SshKeysClient.cs b/Octokit/Clients/SshKeysClient.cs index 48f50feb..64bccf26 100644 --- a/Octokit/Clients/SshKeysClient.cs +++ b/Octokit/Clients/SshKeysClient.cs @@ -1,5 +1,4 @@ -using System; -#if NET_45 +#if NET_45 using System.Collections.Generic; #endif using System.Threading.Tasks; diff --git a/Octokit/Clients/StarredClient.cs b/Octokit/Clients/StarredClient.cs index 5f3b9d27..892ccfde 100644 --- a/Octokit/Clients/StarredClient.cs +++ b/Octokit/Clients/StarredClient.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Net; using System.Threading.Tasks; diff --git a/Octokit/Clients/StatisticsClient.cs b/Octokit/Clients/StatisticsClient.cs index 1b326001..848c8db9 100644 --- a/Octokit/Clients/StatisticsClient.cs +++ b/Octokit/Clients/StatisticsClient.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; -using Octokit.Response; namespace Octokit { diff --git a/Octokit/Clients/TeamsClient.cs b/Octokit/Clients/TeamsClient.cs index 0af67320..dc347e01 100644 --- a/Octokit/Clients/TeamsClient.cs +++ b/Octokit/Clients/TeamsClient.cs @@ -1,7 +1,6 @@ #if NET_45 using System.Collections.Generic; #endif -using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; namespace Octokit diff --git a/Octokit/Clients/UsersClient.cs b/Octokit/Clients/UsersClient.cs index 494cb84e..54e185d3 100644 --- a/Octokit/Clients/UsersClient.cs +++ b/Octokit/Clients/UsersClient.cs @@ -1,8 +1,4 @@ using System; -#if NET_45 -using System.Collections.Generic; -using System.Collections.ObjectModel; -#endif using System.Threading.Tasks; namespace Octokit diff --git a/Octokit/Clients/WatchedClient.cs b/Octokit/Clients/WatchedClient.cs index 45fcfc89..c564e9d0 100644 --- a/Octokit/Clients/WatchedClient.cs +++ b/Octokit/Clients/WatchedClient.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Net; using System.Threading.Tasks; diff --git a/Octokit/Models/Response/PunchCard.cs b/Octokit/Models/Response/PunchCard.cs index 7180478d..af280163 100644 --- a/Octokit/Models/Response/PunchCard.cs +++ b/Octokit/Models/Response/PunchCard.cs @@ -5,7 +5,7 @@ using System.Diagnostics; using System.Globalization; using System.Linq; -namespace Octokit.Response +namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class PunchCard diff --git a/Octokit/Models/Response/PunchCardPoint.cs b/Octokit/Models/Response/PunchCardPoint.cs index fe3d3f56..05e832d2 100644 --- a/Octokit/Models/Response/PunchCardPoint.cs +++ b/Octokit/Models/Response/PunchCardPoint.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.Globalization; -namespace Octokit.Response +namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class PunchCardPoint