Skip to content

Commit

Permalink
Attended to warnings (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-E-angelo authored Mar 12, 2023
1 parent 3d3a4fd commit d31fba8
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public Source(IDiscoveredTypes types, ICollectionItemTypeLocator item)
_item = item;
}

// ReSharper disable once CognitiveComplexity
// ReSharper disable once CyclomaticComplexity
// ReSharper disable once ExcessiveIndentation
protected override bool Create(TypeInfo parameter)
{
var variables = _types.Get(parameter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public void Execute(ProcessReferenceInput parameter)
Process(results, current);
}

// ReSharper disable once CognitiveComplexity
void Process(ReferenceSet results, object current)
{
using var boundary = results.Get(current);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public ReferenceAwareSerializers(ISpecification<object> conditions, IStaticRefer
_specification = specification;
_references = references;
_serializers = serializers;
_allowed = allowed;
_allowed = allowed;
}

public ContentModel.ISerializer Get(TypeInfo parameter)
Expand All @@ -48,13 +48,14 @@ sealed class Serializer : ContentModel.ISerializer
readonly ContentModel.ISerializer _container;
readonly IMultipleReferencesAllowed _allowed;

// ReSharper disable once TooManyDependencies
public Serializer(ISpecification<object> conditions, IReferenceView references,
IMultipleReferencesAllowed allowed, ContentModel.ISerializer container)
{
_conditions = conditions;
_references = references;
_container = container;
_allowed = allowed;
_conditions = conditions;
_references = references;
_container = container;
_allowed = allowed;
}

public object Get(IFormatReader parameter) => _container.Get(parameter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public ReferenceSet(IReferencesPolicy policy, Stack<object> depth, HashSet<objec
_tracked = tracked;
}

// ReSharper disable once CognitiveComplexity
// ReSharper disable once ExcessiveIndentation
public bool IsSatisfiedBy(object parameter)
{
if (parameter is not null)
Expand Down
3 changes: 2 additions & 1 deletion test/.External/VweCore/Geometry/LineEquation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace VweCore.Geometry
{
public readonly struct LineEquation : IEquatable<LineEquation>
public readonly struct LineEquation : IEquatable<LineEquation>
{
public LineEquation(SlopeInterceptEquation slopeInterceptEquation)
{
Expand Down Expand Up @@ -44,6 +44,7 @@ public static LineEquation FromPoints(Point2D point1, Point2D point2)
return otherEquation.SlopeInterceptEquation!.Value.CalculateIntersection(X!.Value);
}

// ReSharper disable once TooManyArguments
public Point2D? GetPointByOffset(Point2D pointFrom, double offset, AbscissaDirection abscissaDirection, OrdinateDirection ordinateDirection)
{
if (!ContainsPoint(pointFrom))
Expand Down
7 changes: 4 additions & 3 deletions test/.External/VweCore/Geometry/MapExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using System.Diagnostics.CodeAnalysis;
using Light.GuardClauses;
using Light.GuardClauses;
using System.Diagnostics.CodeAnalysis;
// ReSharper disable all

namespace VweCore.Geometry
{
public static class MapExtensions
public static class MapExtensions
{
public static bool TryFindIntersectingNodeLink(this Map map, StorageRow storageRow, [NotNullWhen(true)] out NodeLink? nodeLink, out LineSegment2D lineFromStorageRowToIntersection)
{
Expand Down
5 changes: 3 additions & 2 deletions test/.External/VweCore/Geometry/Rectangle2D.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using System;
// ReSharper disable all
using Light.GuardClauses;
using System;

namespace VweCore.Geometry
{
public readonly struct Rectangle2D : IEquatable<Rectangle2D>
public readonly struct Rectangle2D : IEquatable<Rectangle2D>
{
public Rectangle2D(Point2D position, double width, double height, double angleInDegrees)
{
Expand Down
7 changes: 4 additions & 3 deletions test/.External/VweCore/Map.Entities.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using System;
using System.Collections.Generic;
// ReSharper disable all
using Light.GuardClauses;
using System;
using System.Collections.Generic;
using VweCore.Abstractions;
using VweCore.Geometry;

namespace VweCore
{
public sealed partial class Map
public sealed partial class Map
{
public T Add<T>(T entity)
where T : class, IEntity
Expand Down

0 comments on commit d31fba8

Please sign in to comment.