Inspectopedia
 
2024.3

Non-optimal list declaration

Info
New
Last modified: 03 December 2024

Reports cases when a list declaration can be rewritten with a list literal.

This ensures better performance of your application.

Example:

When the quick-fix is applied, the code changes to: