Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FavourStaticEmptyFields: fix issue 630 #631

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

webwarrior-ws
Copy link
Contributor

Added checks for error message containing substitution that is appropriate for given data type (array or list) in FavourStaticEmptyFields tests. E.g. Array.empty should be suggested for replacing [||].

Fixed bug in FavourStaticEmptyFields rule that caused wrong suggestion for arrays.

Simplified FavourStaticEmptyFields rule by removing unnecessary code.

Fixes #630

Added checks for error message containing substitution that is
appropriate for given data type (array or list) in
FavourStaticEmptyFields tests. E.g. `Array.empty` should be
suggested for replacing `[||]`.
Fixed bug in FavourStaticEmptyFields rule that caused wrong
suggestion for arrays (List.Empty instead of Array.empty).

Fixes fsprojects#630
Simplified FavourStaticEmptyFields rule by removing
unnecessary code.

Fixes fsprojects#630
@knocte knocte changed the title Fix issue 630 FavourStaticEmptyFields: fix issue 630 Dec 14, 2023
@knocte knocte merged commit 47576d4 into fsprojects:master Dec 14, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

favourStaticEmptyFields: the suggestion of empty arrays is incorrect
2 participants