-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add FavourNonMutablePropertyInitialization rule #683
Merged
knocte
merged 12 commits into
fsprojects:master
from
webwarrior-ws:favourNonMutablePropertyInitialization-rebased
Jan 18, 2024
Merged
Add FavourNonMutablePropertyInitialization rule #683
knocte
merged 12 commits into
fsprojects:master
from
webwarrior-ws:favourNonMutablePropertyInitialization-rebased
Jan 18, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please squash a36ff properly. |
a36ff3b
to
4808332
Compare
done |
Let's also squash d18acf7, otherwise all commits' CI status will be red except the last one. |
Added failing test for FavourNonMutablePropertyInitialization rule for case when property assignent is not the last statement.
Fix FavourNonMutablePropertyInitialization rule for cases when threre are statements after property assignment.
Added failing test for FavourNonMutablePropertyInitialization rule for case when mutable variable is assigned (false positive).
Use property initialization instead of property mutation as suggested by FavourNonMutablePropertyInitialization rule.
Added failing test for FavourNonMutablePropertyInitialization rule for case when several properties are assigned.
Fix in FavourNonMutablePropertyInitialization rule for case when several properties are assigned.
Added failing tests for FavourNonMutablePropertyInitialization rule for different constructs that may contain instance creation with subsequent property initialization.
Rewrite FavourNonMutablePropertyInitialization rule code so that more cases are covered and not only code in modules and functions.
Use property initialization instead of property mutation as suggested by FavourNonMutablePropertyInitialization rule.
d18acf7
to
3de1d16
Compare
Done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add FavourNonMutablePropertyInitialization rule and tests for it.
Apply suggestions of this rule to FSharpLint code.
Supersedes #662
Fixes #535