Skip to content

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

Closed

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.

Activity

  1. iSazonov commented on Dec 2, 2020

    @iSazonov

    Since we are migrating all PowerShell code base to the new pattern this would be nice to have.

  2. kaskas commented on Jan 18, 2021

    @kaskas
    Contributor

    @iSazonov - automated #CodeQuality analysis for C# 9.0 is now available at CodeFactor.io. Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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