No description, website, or topics provided.
C# Visual Basic Other
Clone or download
mavasani Merge pull request #1769 from mavasani/Issue1652
Ignore invocations within lambda body for DoNotCallOverridableMethods…
Latest commit 1ee4d81 Aug 14, 2018
Permalink
Failed to load latest commit information.
.github Update the repo after the release of 2.6.1 packages (#1710) Jun 6, 2018
assets Move EULA to assets dir Jun 13, 2017
docs Updated links from MSDN to docs.microsoft Jan 17, 2018
eng Move forward the pre-release version of packages generated in the repo Aug 7, 2018
nuget Merge pull request #1748 from dotpaul/features/sdl-rulesets Aug 6, 2018
src Merge pull request #1769 from mavasani/Issue1652 Aug 14, 2018
tools Update to RT 1.0.0-beta2-62922-02 May 22, 2018
.editorconfig Added .editorconfig May 4, 2017
.gitattributes Update to RT 1.0.0-beta2-62922-02 May 22, 2018
.gitignore Update to RT 1.0.0-beta2-62922-02 May 22, 2018
.vsts-ci.yml Update to RT 1.0.0-beta2-62922-02 May 22, 2018
Build.cmd Update to RT 1.0.0-beta2-62922-02 May 22, 2018
CopyrightHeader.md Modify copyright header template Feb 12, 2016
Directory.Build.props Update to RT 1.0.0-beta2-62922-02 May 22, 2018
License.txt Modify copyright header template Feb 12, 2016
README.md Fixed typo in link. Jun 22, 2018
Restore.cmd Update to RT 1.0.0-beta2-62922-02 May 22, 2018
RoslynAnalyzers.sln Add console app Metrics.exe to generate code metrics report Aug 3, 2018
Test.cmd Update to RT 1.0.0-beta2-62922-02 May 22, 2018
VERSIONING.md Move forward the pre-release version of packages generated in the repo Aug 7, 2018
codecov.yml Update codecov integration to more closely match the work in RepoToolset Feb 27, 2018
global.json Update to RT 1.0.0-beta2-62922-02 May 22, 2018
netci.groovy Remove Ubuntu May 22, 2018
nuget.config Update to RT 1.0.0-beta2-62922-02 May 22, 2018

README.md

.NET Compiler Platform ("Roslyn") Analyzers

Join the chat at https://gitter.im/roslyn-analyzers/Lobby

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 codecov Build Status

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: NuGet

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

More info

Microsoft.CodeQuality.Analyzers

Latest stable version: NuGet

Provides common code quality guidelines.

More info

Microsoft.CodeQuality.Analyzers.Exp

Latest pre-release version: NuGet

Experimental package based on Dataflow Analysis to provide code quality guidelines in executable code.

More info

Microsoft.NetCore.Analyzers

Latest stable version: NuGet

Analyzers for APIs specific to .NET Core.

More info

Microsoft.NetFramework.Analyzers

Latest stable version: NuGet

Analyzers for APIs specific to the desktop .NET Framework.

More info

Roslyn.Diagnostics.Analyzers

Latest stable version: NuGet

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

More info

Text.Analyzers

Latest stable version: NuGet

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

Getting Started

  1. Clone the repository
  2. Restore and build: build.cmd
  3. Execute tests: test.cmd

Submitting Pull Requests

Prior to submitting a pull request, ensure the build and all tests pass using using steps 2 and 3 above.

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

Recommended Visual Studio Version: Visual Studio 2017 15.5 Preview5, RTW or later

Recommended Analyzer Package Version: Version 2.6.1, for example https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers/2.6.1

Due to the fact that large number of our analyzers were based on the not-yet-shipped IOperation APIs in Roslyn, they were in beta stage and tied to a specific compiler/Visual Studio version. IOperation API shipped in Visual Studio 2017 15.5 Preview5, and we have released fully supported version 2.6.0 analyzer packages that should work on all future compiler/Visual Studio 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 Preview5, RTW or later: Analyzer package Version 2.6.1, for example https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers/2.6.1

On Visual Studio 2017 15.5 and later releases, 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