You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the VarCouldBeVal rule only reports on locally-scoped function variables. It would be nice if the rule could be extended to include private top-level class/object properties as well.
For example
classTest {
privatevar viewModel =BaseViewModel() // Not re-assigned anywhere else in the class...
}
should report a violation.
Context
Theses are valid errors that should be reported to fix unnecessary mutability.
The text was updated successfully, but these errors were encountered:
Hey @schalkms sorry for the late reply. I've actually haven't found the time to work on this lately so it'd probably be best to let someone else work on it 😞
Expected Behavior of the rule
Currently, the
VarCouldBeVal
rule only reports on locally-scoped function variables. It would be nice if the rule could be extended to include private top-levelclass
/object
properties as well.For example
should report a violation.
Context
Theses are valid errors that should be reported to fix unnecessary mutability.
The text was updated successfully, but these errors were encountered: