Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Add new roslyn code analyzers to support optimal Span/Memory uses within upstream repos. #2179

Closed

Description

@ahsonkhan

We have prototype analyzers within corefxlab atm which we can use as a starting point that encapsulates the tips from here: https://www.codemag.com/Article/1807051/Introducing-.NET-Core-2.1-Flagship-Types-Span-T-and-Memory-T

Once we add them to buildtools, upstream repos (like corefx/coreclr/etc.) will automatically throw warnings during build (which are generally treated as errors) and could even get suggested code fixes going forward.

dotnet/corefxlab#2206
dotnet/corefxlab#2236

ML.NET has their own internal code analyzers and we should consider how to support that (and potentially other) repos as well:
https://github.com/dotnet/machinelearning/tree/master/tools-local/Microsoft.ML.InternalCodeAnalyzer

cc @KrzysztofCwalina, @joshfree, @weshaggard, @eerhardt, @terrajobst

Activity

  1. self-assigned this
    on Oct 4, 2018
  2. added this to the Future milestone on Oct 4, 2018
  3. eerhardt commented on Oct 4, 2018

    @eerhardt
    Member

    buildtools is going away. I think this issue should be opened in https://github.com/dotnet/arcade.

  4. ahsonkhan commented on Oct 4, 2018

    @ahsonkhan
    Author

    I talked to @weshaggard about this and he suggested keeping it in buildtools for the time being with the rest of the analyzers until we have a plan to move them all together.

  5. eerhardt commented on Oct 4, 2018

    @eerhardt
    Member

    It would seem that folks like the SDK team and ASP.NET would benefit from these analzyers as well. Getting them in arcade sooner would speed that up IMO.

    Why put something here now, when you know it will be moved in less than a month or two?

  6. weshaggard commented on Oct 4, 2018

    @weshaggard
    Member

    @eerhardt it is just adding additional analyzers to our existing set so whether or not that it is done here or in arcade I don't think it makes much of a difference.

    That said if @ahsonkhan is willing to do the work-item to move the analyzers to arcade as part of this work I'm all for it :)

  7. removed their assignment
    on Sep 11, 2019
  8. ViktorHofer commented on Mar 10, 2021

    @ViktorHofer
    Member

    // Auto-generated message

    Going forward, the .NET team is using https://github.com/dotnet/arcade to develop the code and issues formerly in this repository. Feel free to reopen/move this issue if it still applies to servicing branches in this repository, or source code which now resides in the Arcade repository.

  9. removed this from the Future milestone on Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions