Skip to content

Bug: Should not report AV1553 on overridden members #140

@bkoelman

Description

@bkoelman

Rule: AV1553 Do not use optional parameters with default value null for strings, collections or tasks

For example:

  • when inheriting from abstract class Microsoft.AspNetCore.Routing.LinkGenerator
  • when implementing interface Swashbuckle.AspNetCore.Swagger.ISwaggerProvider

These require to implement methods with optional parameters. There's no way to fix the reported violation, other than to suppress it. Therefore it doesn't make sense to report a violation in these cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions