Analyzes your code for Episerver best practices
Code analyzers for Episerver are Roslyn based analyzers that look for Episerver CMS and Commerce best practices and produce warnings ("squiggles") in Visual Studio as you type. The analyzers are installed per-project via a NuGet package, and are also executed by build servers.
Code | Problem | Severity |
---|---|---|
[ContentType(DisplayName="...")] |
Missing GUID | ⛔ |
[Display(Name="...")] |
Missing Description | |
DataFactory.Instance |
Legacy type | |
ApprovalDB.SaveAsync() |
Internal type | |
public class Block : BlockData { public virtual ContentArea ... |
ContentArea in Block |
ℹ️ |
Install-Package CodeAnalyzers.Episerver
Available at nuget.episerver.com
Analyzer rule severity can be configured in a ruleset file.