Skip to content

Add smell for limitting the number of explicit imports#1677

Open
crtschin wants to merge 2 commits intondmitchell:masterfrom
crtschin:crtschin/explicit-import-limit
Open

Add smell for limitting the number of explicit imports#1677
crtschin wants to merge 2 commits intondmitchell:masterfrom
crtschin:crtschin/explicit-import-limit

Conversation

@crtschin
Copy link
Copy Markdown

Fixes #1676.

Does what it says on the tin. Adds a new smell called many explicit imports that the user can use to limit the number of explicit imports. Extended both inline (I think that's what these are) and golden tests to include this setting.

@arybczak
Copy link
Copy Markdown

arybczak commented Mar 26, 2026

This is especially helpful to contain the number of explicit imports in the codebase where a portion of people use HLS, since HLS by default uses explicit import lists, but lots of explicit imports make the codebase incredibly hard/tedious to modify for people who don't use HLS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make it possible to restrict the number of explicit imports

2 participants