Skip to content

Upgrade StyleCopAnalyzers to v1.2.0-beta.261 #26

@xtqqczze

Description

@xtqqczze

In PowerShell/PowerShell#14301 we saw spurious SA100 rule violations because the version of StyleCopAnalyzers in use by codefactor-io does not recognise C# 9.0 target-typed new expressions:

 The spacing around the keyword 'new' is invalid. lines of code = 1
Found in src\Microsoft.PowerShell.CoreCLR.Eventing\DotNetCode\Eventing\EventProviderTraceListener.cs:281
281
            StringBuilder failMessage = new(message);

The StyleCopAnalyzers issue was resolved in DotNetAnalyzers/StyleCopAnalyzers#3187 and was released in v1.2.0-beta.261.

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