Skip to content

SA1516 (ElementsMustBeSeparatedByBlankLine) reported for Property and its backing fields #3948

@fwagan

Description

@fwagan

I enabled SA1516 as error, but I see errors for a property and its backing fields

public bool TestProperty => testProperty ??= false;
bool? testProperty; // SA1516 reports here

I don't find conguration regarding SA1516 in the settings schema.

If this information would help, I configured to omit private modifier by
dotnet_style_require_accessibility_modifiers = omit_if_default:error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions