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

Commit ad208ab

Browse files
Merge pull request #370 from microsoft/staging
Release - 3/18/24
2 parents 88c7e7a + 149770b commit ad208ab

66 files changed

Lines changed: 1202 additions & 225 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ csharp_space_between_method_declaration_parameter_list_parentheses = false
4747
#Formatting - wrapping options
4848

4949
#leave code block on separate lines
50-
csharp_preserve_single_line_blocks = false
50+
csharp_preserve_single_line_blocks = true
5151

5252
#Style - Code block preferences
5353

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</PropertyGroup>
3333

3434
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
35-
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
35+
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556">
3636
<PrivateAssets>all</PrivateAssets>
3737
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3838
</PackageReference>

build/azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ parameters:
2020
- release
2121

2222
variables:
23-
MSIXVersion: '0.1100'
23+
MSIXVersion: '0.1200'
2424
solution: '**/GitHubExtension.sln'
2525
appxPackageDir: 'AppxPackages'
2626
testOutputArtifactDir: 'TestResults'

build/scripts/CreateBuildInfo.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Param(
55
)
66

77
$Major = "0"
8-
$Minor = "11"
8+
$Minor = "12"
99
$Patch = "99" # default to 99 for local builds
1010

1111
$versionSplit = $Version.Split(".");

codeAnalysis/GlobalSuppressions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
// a specific target and scoped to a namespace, type, member, etc.
88
using System.Diagnostics.CodeAnalysis;
99

10-
[assembly: SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1009:ClosingParenthesisMustBeSpacedCorrectly", Justification = "All current violations are due to Tuple shorthand and so valid.")]
11-
[assembly: SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1011:ClosingSquareBracketsMustBeSpacedCorrectly", Justification = "Optional arrays need to be supported. Ex []?")]
12-
1310
[assembly: SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1101:PrefixLocalCallsWithThis", Justification = "We follow the C# Core Coding Style which avoids using `this` unless absolutely necessary.")]
1411

1512
[assembly: SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1200:UsingDirectivesMustBePlacedWithinNamespace", Justification = "We follow the C# Core Coding Style which puts using statements outside the namespace.")]

src/GitHubExtension/Client/Exceptions.cs

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/GitHubExtension/Client/GithubClientProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class GitHubClientProvider
1212
{
1313
private readonly GitHubClient publicRepoClient;
1414

15-
private static readonly object InstanceLock = new ();
15+
private static readonly object InstanceLock = new();
1616

1717
private static GitHubClientProvider? _instance;
1818

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
namespace GitHubExtension.Client;
5+
6+
public class InvalidApiException : Exception
7+
{
8+
public InvalidApiException()
9+
{
10+
}
11+
12+
public InvalidApiException(string message)
13+
: base(message)
14+
{
15+
}
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
namespace GitHubExtension.Client;
5+
6+
public class InvalidGitHubUrlException : Exception
7+
{
8+
public InvalidGitHubUrlException()
9+
{
10+
}
11+
12+
public InvalidGitHubUrlException(string message)
13+
: base(message)
14+
{
15+
}
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
namespace GitHubExtension.Client;
5+
6+
public class InvalidUrlException : Exception
7+
{
8+
public InvalidUrlException()
9+
{
10+
}
11+
12+
public InvalidUrlException(string message)
13+
: base(message)
14+
{
15+
}
16+
}

0 commit comments

Comments
 (0)