[Feature Request]: lint rule that warns about unqualified imports #26102
Labels
area: Python bindings
For things related to chapel-py, chpl-language-server, chplcheck, etc.
area: Tools
type: Feature Request
Given the possibility that a module could add a new symbol and break code, it would be nice if
chplcheck
could help users avoid this situationFor example
Should someone add a
proc foo
to A, this code will break. However, a linter rule for unqualified import could seuse A
and warn, suggestingimport A
.Regardless of the code breaking argument, users may just generally prefer only using qualified access and this lint rule can help them enforce that.
Note that I strongly feel that this should be an off-by-default lint warning that users can opt into if they wish.
The text was updated successfully, but these errors were encountered: