8000 GitHub - nguerrera/roslyn-analyzers
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nguerrera/roslyn-analyzers

 
 

Repository files navigation

.NET Compiler Platform ("Roslyn") Analyzers

This repository contains a number of Roslyn diagnostic analyzers initially developed to help flesh out the design and implementation of the static analysis APIs. They have been migrated from the main dotnet/roslyn repository in order to continue and speed their further development.

Pre-release builds are available on MyGet gallery: https://dotnet.myget.org/Gallery/roslyn-analyzers.

Windows Debug Windows Release
master Build Status Build Status

Join the chat at https://gitter.im/dotnet/roslyn

Projects

MetaCompilation

Created by summer 2015 interns Zoë Petard, Jessica Petty, and Daniel King

The MetaCompilation Analyzer is an analyzer that functions as a tutorial to teach users how to write an analyzer. It uses diagnostics and code fixes to guide the user through the various steps required to create a simple analyzer. It is designed for a novice analyzer programmer with some previous programming experience.

For instructions on using this tutorial, see Instructions.

Microsoft.CodeAnalysis.Analyzers

Latest stable version: 1.1.0

Provides guidelines for using .NET Compiler Platform ("Roslyn") APIs.

More info

Microsoft.CodeQuality.Analyzers

NuGet link (no stable version yet): https://www.nuget.org/packages/Microsoft.CodeQuality.Analyzers/

Provides guidelines for using .NET Compiler Platform ("Roslyn") APIs.

More info

Microsoft.NetCore.Analyzers

NuGet link (no stable version yet): https://www.nuget.org/packages/Microsoft.NetCore.Analyzers/

Analyzers for APIs specific to .NET Core.

More info

Microsoft.NetFramework.Analyzers

NuGet link (no stable version yet): https://www.nuget.org/packages/Microsoft.NetFramework.Analyzers/

Analyzers for APIs specific to the desktop .NET Framework.

More info

Roslyn.Diagnostics.Analyzers

NuGet link (no stable version yet): https://www.nuget.org/packages/Roslyn.Diagnostics.Analyzers/

Contains analyzers specific to the .NET Compiler Platform ("Roslyn") project.

More info

Text.Analyzers

NuGet link (no stable version yet): https://www.nuget.org/packages/Text.Analyzers/

Contains analyzers for text included in code, such as comments.

Getting Started

  1. Clone the repository
  2. Install NuGet packages: msbuild /t:restore RoslynAnalyzers.sln
  3. Build: msbuild RoslynAnalyzers.sln

Execute cibuild.cmd to clean, restore, build and runs tests

Submitting Pull Requests

Prior to submitting a pull request, ensure the build and all tests pass using BuildAndTest.proj:

msbuild BuildAndTest.proj

Versioning Scheme for Analyzer Packages

See VERSIONING.md for the versioning scheme for all analyzer packages built out of this repo.

Recommended version of Analyzer Packages

Due to the fact that large number of our analyzers are based on the not-yet-shipped IOperation APIs in Roslyn, they are still in beta stage and tied to a specific compiler/Visual Studio version. Once the IOperation API is shipped, we will release a fully supported analyzer package that should work on future compiler versions. Please use the following guidelines when choosing the version of analyzer packages to use on a specific version of Visual Studio/compiler toolset:

  1. Visual Studio 2015 RTW: Analyzer package Version 1.0.1, for example https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers/1.0.1
  2. Visual Studio 2015 Update 1: Analyzer package Version 1.1.0, for example https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers/1.1.0
  3. Visual Studio 2015 Update 2 and 3: Analyzer package Version 1.2.0-beta2, for example https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers/1.2.0-beta2
  4. Visual Studio 2017 RTW (15.0), 15.1 and 15.2: Analyzer package Version 2.0.0-beta2, for example https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers/2.0.0-beta2
  5. Visual Studio 2017 15.3: Analyzer package Version 2.3.0-beta1, for example https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers/2.3.0-beta1
  6. Visual Studio 2017 15.5 Preview 3: Analyzer package Version 2.6.0-beta1, for example https://dotnet.myget.org/feed/roslyn-analyzers/package/nuget/Microsoft.CodeAnalysis.FxCopAnalyzers/2.6.0-beta1-62231-02

On Visual Studio 2017 15.3 release, you can also install a custom Microsoft Code Analysis VSIX containing these analyzers as a Visual Studio extension for all your managed projects. See details here: https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.MicrosoftCodeAnalysis2017

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 96.9%
  • Visual Basic .NET 2.9%
  • Other 0.2%
0