Skip to content

SA1516: misfire in C# 9 top-level statements #3351

@AArnott

Description

@AArnott

Given this Program.cs file:

// Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using MinerForeman;

var foreman = new Foreman();
await foreman.RunAsync();

The last line in the file above produces:

Warning	SA1516	Elements should be separated by blank line	Program.cs

This repros with StyleCop.Analyzers 1.2.0-beta.333

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions