? PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
22 Jun 2023

Adds a new code style rule which checks if there are unused imports. This rule has some caveats with comments, but the rest should work pretty stable.

avatar joomla-cms-bot joomla-cms-bot - change - 22 Jun 2023
Category Administration com_tags Front End Libraries Plugins Unit Tests
avatar laoneo laoneo - open - 22 Jun 2023
avatar laoneo laoneo - change - 22 Jun 2023
Status New Pending
avatar laoneo laoneo - change - 22 Jun 2023
Labels Added: ? PR-4.4-dev
avatar sandewt
sandewt - comment - 22 Jun 2023

How can I test this?

avatar laoneo
laoneo - comment - 22 Jun 2023

Check the touched files if the imports are really not used. Classes like document or the view are used across the whole code base, so are tested with the system tests. The rest can be tested when you actually use their functionality like the SQL custom field or tags.

avatar MacJoom MacJoom - close - 26 Jun 2023
avatar MacJoom MacJoom - merge - 26 Jun 2023
avatar MacJoom MacJoom - change - 26 Jun 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-06-26 17:34:32
Closed_By MacJoom

Add a Comment

Login with GitHub to post a comment