Skip to content

Commit

Permalink
Updated packages. (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgernand authored Jun 12, 2024
1 parent 81d8f4b commit 85d7444
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
12 changes: 11 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dotnet_naming_rule.private_instance_fields_rule.style = lower_camel_case_style
dotnet_naming_rule.private_instance_fields_rule.symbols = private_instance_fields_symbols
dotnet_naming_rule.private_static_fields_rule.import_to_resharper = as_predefined
dotnet_naming_rule.private_static_fields_rule.severity = warning
dotnet_naming_rule.private_static_fields_rule.style = lower_camel_case_style
dotnet_naming_rule.private_static_fields_rule.style = upper_camel_case_style
dotnet_naming_rule.private_static_fields_rule.symbols = private_static_fields_symbols
dotnet_naming_rule.private_static_readonly_rule.import_to_resharper = as_predefined
dotnet_naming_rule.private_static_readonly_rule.severity = warning
Expand Down Expand Up @@ -143,3 +143,13 @@ csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion
dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
dotnet_style_namespace_match_folder = true:suggestion
csharp_style_prefer_primary_constructors = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_prefer_null_check_over_type_check = true:suggestion
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_prefer_local_over_anonymous_function = true:suggestion
2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
next-version: 8.0.0
next-version: 8.1.0
1 change: 1 addition & 0 deletions src/Fluxera.Spatial.JsonNet/GeometryCollectionConverter.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// ReSharper disable AssignNullToNotNullAttribute
namespace Fluxera.Spatial.JsonNet
{
using System;
Expand Down
2 changes: 1 addition & 1 deletion src/Fluxera.Spatial.LiteDB/Fluxera.Spatial.LiteDB.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="JetBrains.Annotations" Version="2023.3.0" PrivateAssets="All" />
<PackageReference Include="LiteDB" Version="5.0.19" />
<PackageReference Include="LiteDB" Version="5.0.20" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Fluxera.Spatial.SystemTextJson
// ReSharper disable PossibleNullReferenceException
namespace Fluxera.Spatial.SystemTextJson
{
using System;
using System.Collections.Generic;
Expand Down
4 changes: 3 additions & 1 deletion src/Fluxera.Spatial/Guard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
#if NET7_0_OR_GREATER
using System.Numerics;
#endif
using System.Runtime.CompilerServices;

internal static class Guard
Expand All @@ -28,7 +30,7 @@ public static string ThrowIfNullOrEmpty(string argument, [InvokerParameterName][
return argument;
}

public static string ThrowIfNullOrWhiteSpace(string argument, [InvokerParameterName][CallerArgumentExpression("argument")] string parameterName = null)
public static string ThrowIfNullOrWhiteSpace(string argument, [InvokerParameterName][CallerArgumentExpression(nameof(argument))] string parameterName = null)
{
argument = ThrowIfNull(argument, parameterName);

Expand Down

0 comments on commit 85d7444

Please sign in to comment.