microsoft / DevSkim

DevSkim is a set of IDE plugins, language analyzers, and rules that provide security "linting" capabilities.
MIT License
910 stars 116 forks source link

Suggestions are not reliably ordered in VS 2022 #582

Closed gfs closed 1 year ago

gfs commented 1 year ago

Describe the bug After the fix in #581 the method to obtain the available fixes returns a non-deterministic ordering of the fixes.

To Reproduce Have a file with an issue with fixes available, view available fixes multiple times, the ordering will change.

Expected behavior Replacements should appear before suppressions.

Additional context Before returning the fixes to the UX we should order them to ensure replacements are ordered before suppressions.