Skip to content

Commit

Permalink
chore: rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyMakkison committed Jan 23, 2024
1 parent ad6ab87 commit 4bb37a3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
namespace Riok.Mapperly.Abstractions;
using System.Diagnostics;

namespace Riok.Mapperly.Abstractions;

/// <summary>
/// Defines the maximum recursion depth that an IQueryable mapping will use.
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
[Conditional("MAPPERLY_ABSTRACTIONS_SCOPE_RUNTIME")]
public sealed class MapperMaxRecursionDepthAttribute : Attribute
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/Riok.Mapperly/AnalyzerReleases.Shipped.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ RMG055 | Mapper | Error | The source type does not implement ToString with
RMG056 | Mapper | Error | Invalid format provider signature
RMG057 | Mapper | Error | Format provider not found
RMG058 | Mapper | Error | Multiple default format providers found, only one is allowed
RMG059 | Mapper | Error | The value of MaxRecursionDepth cannot be less than zero

### Removed Rules
Rule ID | Category | Severity | Notes
Expand Down
2 changes: 1 addition & 1 deletion src/Riok.Mapperly/Diagnostics/DiagnosticDescriptors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ public static class DiagnosticDescriptors
);

public static readonly DiagnosticDescriptor MaxRecursionDepthMustBeZeroOrMore = new DiagnosticDescriptor(
"RMG056",
"RMG059",
$"The value of MaxRecursionDepth cannot be less than zero",
$"The value of MaxRecursionDepth cannot be less than zero",
DiagnosticCategories.Mapper,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#nullable enable
public partial class Mapper
{
[global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "0.0.1.0")]
private partial global::System.Linq.IQueryable<global::B> Map(global::System.Linq.IQueryable<global::A> source)
{
#nullable disable
Expand Down

0 comments on commit 4bb37a3

Please sign in to comment.