View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 2019.4.40 or later
- Package size
- 108 KB
- Files
- 210
- Favorites
- 7
- Views in the past week
- 2
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $36.00 on
Keywords
Turbo Clean Code
Turbo Clean Code helps you to clean your code easier. Fix SRP issues in your code faster with Turbo Clean Code!
Affiliate link Β· Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 4
Turbo Clean Code screenshot 1
About this asset
π₯π©π¦ Features π¦π©π₯
- Scripts sorting by their lines count
- Basic statistics display about your code
- Customization of script themes and state thresholds
- Customization of folders taken into account
- Automatic refresh after saved code edits
- Targeted script selection in Project window
π₯π©π¦ Why using Turbo Clean Code? π¦π©π₯
Having long scripts in your code is generally the sign that your code does not respect enough the 'Single-Responsibility Principle', and can lead you to 'God object' antipattern.
The Single-Responsability Principle (SRP) is the first and probably the most important principle from famous SOLID principles that guides you to make robust clean code, and unfortunately generally it's the least respected principle.
π₯π©π¦ What Turbo Clean Code can do? π¦π©π₯
With Turbo Clean Code, you can visualize in a window all your scripts sorted by its lines count in order to quickly identify too long scripts in your code that probably ignore SRP.
From the publisher's Asset Store listing.
Technical details
π₯ Scripts sorting
You can sort scripts by their name, their lines count or their path, both by ascending or descending order.
π© Statistics display
The Scripts Sorter window display basics statistics about your code : scripts number, total lines of code, average lines by script and median.
π¦ Themes customization
You can create and customize window themes for script length lines count states.
By default, there's 3 differents themes parts for the default theme:
* Error: Scripts longer or equal than 200 lines, displayed in red.
* Warning: Scripts between 100 lines (included) and 200 lines (excluded), displayed in yellow.
* Log: Scripts less than 100 lines in white.
You can add or remove such theme parts, customize their lines count threshold and displayed icon and colors. Two built themes are included: Default theme and Another theme.
Turbo Clean Code works with both dark and light mode.
π₯ Included and excluded folders customization
You can customize which folders are or aren't taken into account for visualization.
π© Automatic refresh after saved code edits
Each time you save your code, changes will be taken into account automatically in the window after compilation in the Editor. No need to refresh manually the window. There's a Reload Window button in the Scripts Sorter window, but it's only useful when you customize themes or folders selection, to avoid the need to re-open the window.
π¦ Scripts selection in Project window
By clicking on a script name button in the Scripts Sorter window, it selects the script in the Project window. It allows you to quickly select the targeted scripts you want to refactor, depending their lines count.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2021.3.17f1 | Compatible | Compatible | Compatible | Compatible |
| 2019.4.40f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.