SMAPI icon indicating copy to clipboard operation
SMAPI copied to clipboard

Add analyzers to detect incorrect usage of Content Managers for vanilla assets

Open SinZ163 opened this issue 1 year ago • 0 comments

This Analyzer addition contains two new analyzers:

  1. AvoidContentManagerBadType
    • This will trigger when DataLoader can load the given Data asset, and the type is wrong. This is an error and will cause exceptions at runtime anyway
  2. PreferContentManagerDataLoader
    • This will trigger when DataLoader can load the given Data asset, regardless of type. This is Informative as its best practice, but the code will work anyway.

SinZ163 avatar Nov 12 '23 01:11 SinZ163