@ekaitz_zarraga I'd love such a feature.
Currently the compiler warns about unused functions and arguments (i.e. dead code), but it doesn't warn about unused imports.
@ekaitz_zarraga I'd love such a feature.
Currently the compiler warns about unused functions and arguments (i.e. dead code), but it doesn't warn about unused imports.
@ekaitz_zarraga Yes, please 🙂
I've been wanting this since forever.
@ekaitz_zarraga I have no idea 😅
@ekaitz_zarraga Well, the compiler is already doing some sort of check for all the symbols in the file to see what's being used and what isn't (in the case of `unused-variable` and `unused-toplevel`). So adding the new warning would be a matter of determining all the symbols brought in by each import, comparing that against the symbols used in the code, and then warning about any import whose symbol list had no matches in the current file.
But don't forget about shadowing!
tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.
All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.