Mutagen-Modding / Mutagen.Bethesda.Analyzers

A project to diagnose and analyze the health of a mod or a load order
GNU General Public License v3.0
18 stars 5 forks source link

Standardize Enum.HasFlag #127

Open Noggog opened 2 months ago

Noggog commented 2 months ago

Eventually I think we'll add a "fast" HasFlag option. On the back of a project/concept like this: https://github.com/EngRajabi/Enum.Source.Generator I dont know that that one specifically is good enough, but I might make one myself with our needs sometime.

and it'll be easier to find/replace HasFlag calls rather than the raw bit comparison alternative. If we have the raw alternative in the repo, new analyzers will copy the pattern and it'll be a bit of a mess