-
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
[Feature] New rule to prefer non-mutable property initialization #535
Comments
janus
added a commit
to janus/FSharpLint
that referenced
this issue
Jan 11, 2022
janus
added a commit
to janus/FSharpLint
that referenced
this issue
Jan 11, 2022
janus
added a commit
to janus/FSharpLint
that referenced
this issue
Jan 12, 2022
janus
added a commit
to janus/FSharpLint
that referenced
this issue
Jan 12, 2022
janus
added a commit
to janus/FSharpLint
that referenced
this issue
Jan 13, 2022
janus
added a commit
to janus/FSharpLint
that referenced
this issue
May 12, 2022
janus
added a commit
to janus/FSharpLint
that referenced
this issue
May 12, 2022
parhamsaremi
pushed a commit
to parhamsaremi/FSharpLint
that referenced
this issue
Nov 21, 2022
knocte
pushed a commit
to knocte/FSharpLint
that referenced
this issue
Dec 31, 2023
knocte
pushed a commit
to knocte/FSharpLint
that referenced
this issue
Dec 31, 2023
knocte
pushed a commit
to knocte/FSharpLint
that referenced
this issue
Dec 31, 2023
knocte
pushed a commit
to knocte/FSharpLint
that referenced
this issue
Dec 31, 2023
webwarrior-ws
pushed a commit
to webwarrior-ws/FSharpLint
that referenced
this issue
Jan 16, 2024
webwarrior-ws
pushed a commit
to webwarrior-ws/FSharpLint
that referenced
this issue
Jan 16, 2024
webwarrior-ws
pushed a commit
to webwarrior-ws/FSharpLint
that referenced
this issue
Jan 16, 2024
webwarrior-ws
pushed a commit
to webwarrior-ws/FSharpLint
that referenced
this issue
Jan 16, 2024
webwarrior-ws
pushed a commit
to webwarrior-ws/FSharpLint
that referenced
this issue
Jan 18, 2024
knocte
added a commit
that referenced
this issue
Jan 18, 2024
…on-rebased * Add FavourNonMutablePropertyInitialization rule and tests for it. * Apply suggestions of this rule to FSharpLint code. Fixes #535
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
New rule to prefer non-mutable property initialization.
Testcases
Code that should be flagged:
Code that should not be flagged:
Granted, using non-mutable property initialization generates the same CIL code than the flagged code, but it looks better because it doesn't have the
<-
operator.The text was updated successfully, but these errors were encountered: