fsprojects / FSharpLint

Lint tool for F#
https://fsprojects.github.io/FSharpLint/
MIT License
300 stars 73 forks source link

DRAFT: Add quick fix to rule82 (multi-fix) #656

Open webwarrior-ws opened 6 months ago

webwarrior-ws commented 6 months ago

Implement quick fix for UsedUnderscorePrefixedElements rule. It renames identifier with _ prefix to identifier without this prefix (e.g. _foo -> foo). Quick fix is only applied if no other identifiers with suggested name (without underscore) exist. There are cases when such identifiers exist, but not in the same scope, and still no quick fix is applied. That is because checking the scope proved to be much more difficult than expected.