Skip to content

Package Dependencies: Bump the xunit group across 1 directory with 2 updates #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions QueryKit.IntegrationTests/QueryKit.IntegrationTests.csproj
Original file line number Diff line number Diff line change
@@ -20,8 +20,8 @@
<PackageReference Include="Testcontainers" Version="3.9.0" />
<PackageReference Include="Testcontainers.PostgreSql" Version="3.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
4 changes: 2 additions & 2 deletions QueryKit.UnitTests/QueryKit.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -12,8 +12,8 @@
<PackageReference Include="AutoBogusLifesupport" Version="2.14.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>

Unchanged files with check annotations Beta

var propertyInfo = GetPropertyInfo(expr.Type, propName);
if (propertyInfo == null)
{
return null;

Check warning on line 98 in QueryKit/SortParser.cs

GitHub Actions / test (8.0.x)

Possible null reference return.

Check warning on line 98 in QueryKit/SortParser.cs

GitHub Actions / test (8.0.x)

Possible null reference return.

Check warning on line 98 in QueryKit/SortParser.cs

GitHub Actions / test (8.0.x)

Possible null reference return.

Check warning on line 98 in QueryKit/SortParser.cs

GitHub Actions / test (8.0.x)

Possible null reference return.
}
var actualPropertyName = propertyInfo?.Name ?? propName;
return Expression.PropertyOrField(expr, actualPropertyName);
case ExpressionType.New:
var newExpression = (NewExpression)expression;
var arguments = newExpression.Arguments.Select(GetFullPropertyPath);
return $"{newExpression.Constructor.DeclaringType.Name}({string.Join(", ", arguments)})";

Check warning on line 143 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Dereference of a possibly null reference.

Check warning on line 143 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Dereference of a possibly null reference.

Check warning on line 143 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Dereference of a possibly null reference.

Check warning on line 143 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Dereference of a possibly null reference.
case ExpressionType.Invoke:
var invocation = (InvocationExpression)expression;
case ExpressionType.NewArrayInit:
var newArrayInit = (NewArrayExpression)expression;
var arrayInitElements = newArrayInit.Expressions.Select(GetFullPropertyPath);
return $"new {newArrayInit.Type.GetElementType().Name}[] {{ {string.Join(", ", arrayInitElements)} }}";

Check warning on line 205 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Dereference of a possibly null reference.

Check warning on line 205 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Dereference of a possibly null reference.
case ExpressionType.NewArrayBounds:
var newArrayBounds = (NewArrayExpression)expression;
var arrayBounds = newArrayBounds.Expressions.Select(GetFullPropertyPath);
return $"new {newArrayBounds.Type.GetElementType().Name}[{string.Join(", ", arrayBounds)}]";

Check warning on line 210 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Dereference of a possibly null reference.

Check warning on line 210 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Dereference of a possibly null reference.
case ExpressionType.ConvertChecked:
case ExpressionType.ExclusiveOr:
public QueryKitPropertyInfo? GetPropertyInfo(string? propertyName)
=> _propertyMappings.TryGetValue(propertyName, out var info) ? info : null;

Check warning on line 290 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'key' in 'bool Dictionary<string, QueryKitPropertyInfo>.TryGetValue(string key, out QueryKitPropertyInfo value)'.

Check warning on line 290 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'key' in 'bool Dictionary<string, QueryKitPropertyInfo>.TryGetValue(string key, out QueryKitPropertyInfo value)'.
public QueryKitPropertyInfo? GetPropertyInfoByQueryName(string? queryName)
=> _propertyMappings.Values.FirstOrDefault(info => info.QueryName != null && info.QueryName.Equals(queryName, StringComparison.InvariantCultureIgnoreCase));
public bool CanFilter { get; set; }
public bool CanSort { get; set; }
public string? QueryName { get; set; }
internal Expression DerivedExpression { get; set; }

Check warning on line 337 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Non-nullable property 'DerivedExpression' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 337 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Non-nullable property 'DerivedExpression' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 337 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Non-nullable property 'DerivedExpression' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 337 in QueryKit/QueryKitPropertyMappings.cs

GitHub Actions / test (8.0.x)

Non-nullable property 'DerivedExpression' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
}
internal class LogicalAliasMatch
{
public string Alias { get; set; }

Check warning on line 54 in QueryKit/Operators/LogicalOperator.cs

GitHub Actions / test (8.0.x)

Non-nullable property 'Alias' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 54 in QueryKit/Operators/LogicalOperator.cs

GitHub Actions / test (8.0.x)

Non-nullable property 'Alias' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 54 in QueryKit/Operators/LogicalOperator.cs

GitHub Actions / test (8.0.x)

Non-nullable property 'Alias' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 54 in QueryKit/Operators/LogicalOperator.cs

GitHub Actions / test (8.0.x)

Non-nullable property 'Alias' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string Operator { get; set; }

Check warning on line 55 in QueryKit/Operators/LogicalOperator.cs

GitHub Actions / test (8.0.x)

Non-nullable property 'Operator' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 55 in QueryKit/Operators/LogicalOperator.cs

GitHub Actions / test (8.0.x)

Non-nullable property 'Operator' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 55 in QueryKit/Operators/LogicalOperator.cs

GitHub Actions / test (8.0.x)

Non-nullable property 'Operator' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 55 in QueryKit/Operators/LogicalOperator.cs

GitHub Actions / test (8.0.x)

Non-nullable property 'Operator' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
}
internal static List<LogicalAliasMatch> GetAliasMatches(IQueryKitConfiguration aliases)
if (CaseInsensitive && left.Type == typeof(string) && right.Type == typeof(string))
{
return Expression.Equal(
Expression.Call(left, typeof(string).GetMethod("ToLower", Type.EmptyTypes)),

Check warning on line 205 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method)'.
Expression.Call(right, typeof(string).GetMethod("ToLower", Type.EmptyTypes))

Check warning on line 206 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method)'.
);
}
if (CaseInsensitive && left.Type == typeof(string) && right.Type == typeof(string))
{
return Expression.NotEqual(
Expression.Call(left, typeof(string).GetMethod("ToLower", Type.EmptyTypes)),

Check warning on line 238 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method)'.

Check warning on line 238 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method)'.
Expression.Call(right, typeof(string).GetMethod("ToLower", Type.EmptyTypes))

Check warning on line 239 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method)'.

Check warning on line 239 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method)'.
);
}
{
return Expression.Call(
Expression.Call(left, "ToLower", null),
typeof(string).GetMethod("Contains", new[] { typeof(string) }),

Check warning on line 342 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method, params Expression[]? arguments)'.
Expression.Call(right, "ToLower", null)
);
}
return Expression.Call(left, typeof(string).GetMethod("Contains", new[] { typeof(string) }), right);

Check warning on line 347 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method, params Expression[]? arguments)'.
}
}
{
return Expression.Call(
Expression.Call(left, "ToLower", null),
typeof(string).GetMethod("StartsWith", new[] { typeof(string) }),

Check warning on line 370 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method, params Expression[]? arguments)'.
Expression.Call(right, "ToLower", null)
);
}
return Expression.Call(left, typeof(string).GetMethod("StartsWith", new[] { typeof(string) }), right);

Check warning on line 375 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method, params Expression[]? arguments)'.
}
}
{
return Expression.Call(
Expression.Call(left, "ToLower", null),
typeof(string).GetMethod("EndsWith", new[] { typeof(string) }),

Check warning on line 398 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method, params Expression[]? arguments)'.
Expression.Call(right, "ToLower", null)
);
}
return Expression.Call(left, typeof(string).GetMethod("EndsWith", new[] { typeof(string) }), right);

Check warning on line 403 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method, params Expression[]? arguments)'.
}
}
if (CaseInsensitive && xParameter.Type == typeof(string) && right.Type == typeof(string))
{
var toLowerLeft = Expression.Call(xParameter, typeof(string).GetMethod("ToLower", Type.EmptyTypes));

Check warning on line 910 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method)'.

Check warning on line 910 in QueryKit/Operators/ComparisonOperator.cs

GitHub Actions / test (8.0.x)

Possible null reference argument for parameter 'method' in 'MethodCallExpression Expression.Call(Expression? instance, MethodInfo method)'.
var toLowerRight = Expression.Call(right, typeof(string).GetMethod("ToLower", Type.EmptyTypes));
body = comparisonFunction(toLowerLeft, toLowerRight);