Skip to content

Commit

Permalink
fix(deps): update dependency dryioc to v5 (#113)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <bot@renovateapp.com>
  • Loading branch information
renovate[bot] and renovate-bot authored Jun 2, 2022
1 parent 9a40001 commit 2dd7ad5
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/CCVARN.Core/CCVARN.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>8.0</LangVersion>
<LangVersion>9.0</LangVersion>
<nullable>enable</nullable>
<IsPackable>false</IsPackable>
<DebugType>embedded</DebugType>
Expand Down
4 changes: 2 additions & 2 deletions src/CCVARN.Core/Configuration/ConfigSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ namespace CCVARN.Core.Configuration

public static class ConfigSerializer
{
private static readonly Lazy<DeserializerBuilder> deseriazireBuilder = new Lazy<DeserializerBuilder>(() =>
private static readonly Lazy<DeserializerBuilder> deseriazireBuilder = new(() =>
new DeserializerBuilder()
.WithNamingConvention(HyphenatedNamingConvention.Instance));

private static readonly Encoding encoding = new UTF8Encoding(false);

private static readonly Lazy<SerializerBuilder> serializerBuilder = new Lazy<SerializerBuilder>(() =>
private static readonly Lazy<SerializerBuilder> serializerBuilder = new(() =>
new SerializerBuilder()
.WithNamingConvention(HyphenatedNamingConvention.Instance)
.WithTypeInspector(inner => new CommentGatheringTypeInspector(inner))
Expand Down
2 changes: 1 addition & 1 deletion src/CCVARN.Core/Models/NoteData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public NoteData(string type, string summary, string scope)

public override bool Equals(object? obj)
{
if (!(obj is NoteData data))
if (obj is not NoteData data)
return false;
var result = Type == data.Type;
result = result && Scope == data.Scope;
Expand Down
2 changes: 1 addition & 1 deletion src/CCVARN.Core/Parser/CommitParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public IEnumerable<CommitInfo> GetAllCommits()
this._writer.RemoveIndent();
}

if (!(commitInfo is null))
if (commitInfo is not null)
{
yield return commitInfo;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CCVARN.Core/Parser/VersionParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public VersionData ParseVersion(VersionData? version, CommitInfo commit)
if (commit.IsTag)
return newVersion; // We should not parse the commit for version increment on tagged releases

if (!(commit is ConventionalCommitInfo conventionalCommit))
if (commit is not ConventionalCommitInfo conventionalCommit)
return newVersion;

if (conventionalCommit.IsBreakingChange)
Expand Down
4 changes: 2 additions & 2 deletions src/CCVARN/CCVARN.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net50;netcoreapp3.1</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
<PackAsTool>true</PackAsTool>
<ToolCommandName>dotnet-ccvarn</ToolCommandName>
Expand All @@ -24,7 +24,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DryIoc" Version="4.8.8" />
<PackageReference Include="DryIoc" Version="5.1.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
6 changes: 3 additions & 3 deletions src/CCVARN/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace CCVARN

internal static class Program
{
public static Task<int> Main(string[] args)
public static async Task<int> Main(string[] args)
{
var container = CreateContainer();
var console = container.Resolve<IConsoleWriter>();
Expand Down Expand Up @@ -46,7 +46,7 @@ public static Task<int> Main(string[] args)
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()!.InformationalVersion;

if (version.IndexOf('+', StringComparison.Ordinal) > 0)
version = version.Substring(0, version.IndexOf('+', StringComparison.Ordinal));
version = version[..version.IndexOf('+', StringComparison.Ordinal)];

console.WriteInfoLine(text, version);

Expand All @@ -73,7 +73,7 @@ public static Task<int> Main(string[] args)
});
//app.SetDefaultCommand<ParseCommand>();

return app.RunAsync(args);
return await app.RunAsync(args);
}
finally
{
Expand Down
2 changes: 1 addition & 1 deletion tests/CCVARN.Core.Tests/CCVARN.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net5.0;netcoreapp3.1</TargetFrameworks>
<IsPackable>false</IsPackable>
<LangVersion>8.0</LangVersion>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 2dd7ad5

Please sign in to comment.