Table of Contents

Analyzer Rule Guides

The Blazing.Mvvm.Analyzers package ships Roslyn analyzers that catch common MVVM mistakes at build time: the wrong base class, missing attributes, unsafe navigation calls, or a broken dispose pattern. Most rules include a one-click code fix.

Rule Title Severity
BLAZMVVM0001 ViewModelBase Inheritance Warning
BLAZMVVM0002 ViewModelDefinition Attribute Warning
BLAZMVVM0003 MvvmComponentBase Usage Error
BLAZMVVM0004 ViewParameter Attribute Usage Warning
BLAZMVVM0005 Navigation Type Safety Error
BLAZMVVM0006 ViewModelKey Consistency Warning
BLAZMVVM0007 Lifecycle Method Override Info
BLAZMVVM0008 Observable Property Usage Warning
BLAZMVVM0009 Service Injection Warning
BLAZMVVM0010 Route-ViewModel Mapping Info
BLAZMVVM0011 MvvmNavLink Type Safety Error
BLAZMVVM0012 Command Pattern Info
BLAZMVVM0013 MvvmOwningComponentBase Usage Warning
BLAZMVVM0014 StateHasChanged Overuse Info
BLAZMVVM0015 Dispose Pattern Warning
BLAZMVVM0016 Messenger Registration Lifetime Warning
BLAZMVVM0017 RelayCommand Async Pattern Warning
BLAZMVVM0018 NotifyPropertyChangedFor Info
BLAZMVVM0019 CascadingParameter vs Inject Info
BLAZMVVM0020 Route Parameter Binding Warning
BLAZMVVM0021 EventCallback Two-Way Binding Info / Warning

For the generated API documentation of the analyzer and code-fix classes, see the Blazing.Mvvm.Analyzers API reference.