Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 2.57 KB

File metadata and controls

27 lines (24 loc) · 2.57 KB

Linqraft Analyzers

Overview

Diagnostic ID Analyzer Description Level CodeFix
LQRF001 ApiControllerProducesResponseTypeAnalyzer Suggest adding ProducesResponseType for untyped API actions using SelectExpr Info ✅️
LQRS001 SelectExprToTypedAnalyzer Suggest converting untyped SelectExpr to generic form SelectExpr<TSource, TDto> Hidden ✅️
LQRS002 SelectToSelectExprAnonymousAnalyzer IQueryable.Select with anonymous projection → UseLinqraft().Select(...) suggestion Hidden ✅️
LQRS003 SelectToSelectExprNamedAnalyzer IQueryable.Select with named-object projection → UseLinqraft().Select(...) suggestion Hidden ✅️
LQRS004 TernaryNullCheckToConditionalAnalyzer Suggest simplifying ternary null/object patterns Info ✅️
LQRS005 SelectToSelectExprAnonymousNullTernaryAnalyzer Anonymous IQueryable.Select with a simplifiable null ternary → UseLinqraft().Select(...) suggestion Info ✅️
LQRS006 SelectToSelectExprNamedNullTernaryAnalyzer Named IQueryable.Select with a simplifiable null ternary → UseLinqraft().Select(...) suggestion Info ✅️
LQRW001 GeneratedHashedNamespaceUsageAnalyzer Reports when a using of auto-generated namespace Warning ❌️
LQRW002 AutoGeneratedDtoUsageAnalyzer Reports explicit usage of auto-generated DTO types Warning ❌️
LQRW003 UnnecessaryCaptureAnalyzer Capture variables that are not referenced in SelectExpr should be removed Warning ✅️
LQRW004 AnonymousCaptureDelegatePatternAnalyzer Anonymous-object capture should be migrated to the delegate capture pattern Warning ✅️
LQRE001 LocalVariableCaptureAnalyzer Reports missing capture: entries for SelectExpr selectors Error ✅️
LQRE002 GroupByAnonymousKeyAnalyzer Reports anonymous type keys in GroupBy followed by SelectExpr Error ✅️

Basically, analyzers come with code fixes that can be automatically applied to implement the suggested changes. This allows you to fix the above recommendations with a single click.

Prefixes

  • LQRF - Linqraft refactoring suggestions (utility improvements outside projection migrations)
  • LQRS - Linqraft projection suggestions
  • LQRW - Linqraft Warnings
  • LQRE - Linqraft Errors