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, only re-assignments to top-level variables of another package are detected. It would be nice to also prevent re-assigning any top-level variable so they are read-only.
The text was updated successfully, but these errors were encountered:
Thanks @leonklingele - this option was originally left out because it can lead to more false positives than overriding imports and that actually the code for handling it would look very different, not using the import mechanism. There are some things to think about, for example presumably the assignment should be allowed within an init() function as it's a common pattern.
As an explicit opt-in pattern though, it may still be useful, will look into how it could be added to the linting code
Currently, only re-assignments to top-level variables of another package are detected. It would be nice to also prevent re-assigning any top-level variable so they are read-only.
The text was updated successfully, but these errors were encountered: