Skip to content

Releases: PaulNonatomic/ServiceKitAnalyzers

2.0.0

17 Apr 20:56

Choose a tag to compare

ServiceKit Analyzers 2.0.0

Roslyn analyzers for ServiceKit 2.0. Version aligned with ServiceKit for clarity.

All Rules

Rule Severity Description
SK001 Warning [InjectService] member should be an interface type
SK002 Warning [InjectService] field should be private, non-static, non-readonly, no [SerializeField]
SK003 Error [Service(typeof(IFoo))] on a class that doesn't implement IFoo
SK004 Warning Injection chain must include a cancellation token
SK005 Error ServiceKitBehaviour subclass overrides Awake() without calling base.Awake()
SK010 Info Prefer ExecuteWithCancellationAsync(token) over .WithCancellation(token).ExecuteAsync()

New in this release

  • SK003: Catches [Service] type mismatches at compile time
  • SK005: Catches missing base.Awake() calls that would silently break the service lifecycle