guardian/mobile-apps-article-templates
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 274 files with 18,612 lines of code.
- 0 very long files (0 lines of code)
- 2 long files (1,210 lines of code)
- 18 medium size files (5,680 lines of code)
- 37 small files (5,377 lines of code)
- 217 very small files (6,345 lines of code)
Legend:
1001+
501-1000
201-500
101-200
1-100
explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
File Size per Logical Decomposition
primary
Longest Files (Top 50)
| File | # lines | # units |
|---|---|---|
| 654 | 52 | |
| 556 | - | |
| 454 | - | |
| 444 | - | |
| 435 | - | |
| 433 | - | |
| 396 | 25 | |
| 385 | - | |
| 376 | - | |
| 361 | 27 | |
| 288 | - | |
| 272 | 28 | |
| 260 | - | |
| 259 | 19 | |
| 238 | - | |
| 223 | 15 | |
| 218 | - | |
| 218 | - | |
| 211 | - | |
| 209 | - | |
| 195 | - | |
| 189 | - | |
| 178 | - | |
| 178 | - | |
| 176 | - | |
| 174 | 17 | |
| 171 | - | |
| 167 | - | |
| 166 | - | |
| 166 | - | |
| 159 | 5 | |
| 159 | - | |
| 156 | 3 | |
| 156 | - | |
| 153 | - | |
| 153 | - | |
| 150 | - | |
| 146 | - | |
| 146 | - | |
| 146 | - | |
| 144 | - | |
| 138 | - | |
| 138 | - | |
| 136 | 16 | |
| 135 | - | |
| 135 | 13 | |
| 128 | 12 | |
| 127 | 11 | |
| 123 | 12 | |
| 117 | - |
Files With Most Units (Top 35)
| File | # lines | # units |
|---|---|---|
| 654 | 52 | |
| 272 | 28 | |
| 361 | 27 | |
| 396 | 25 | |
| 259 | 19 | |
| 174 | 17 | |
| 136 | 16 | |
| 223 | 15 | |
| 135 | 13 | |
| 128 | 12 | |
| 123 | 12 | |
| 127 | 11 | |
| 80 | 8 | |
| 59 | 7 | |
| 62 | 7 | |
| 114 | 6 | |
| 88 | 6 | |
| 50 | 6 | |
| 60 | 6 | |
| 159 | 5 | |
| 36 | 5 | |
| 26 | 4 | |
| 46 | 4 | |
| 156 | 3 | |
| 64 | 2 | |
| 31 | 2 | |
| 41 | 2 | |
| 66 | 2 | |
| 23 | 2 | |
| 37 | 2 | |
| 36 | 2 | |
| 23 | 2 | |
| 14 | 1 | |
| 4 | 1 | |
| 9 | 1 |
Files With Long Lines (Top 50)
There are 77 files with lines longer than 120 characters. In total, there are 278 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 238 | - | 98 | |
| 107 | - | 23 | |
| 135 | - | 8 | |
| 105 | - | 7 | |
| 60 | - | 5 | |
| 27 | - | 5 | |
| 654 | 52 | 5 | |
| 42 | - | 5 | |
| 62 | - | 5 | |
| 114 | - | 4 | |
| 94 | - | 4 | |
| 91 | - | 4 | |
| 361 | 27 | 4 | |
| 74 | - | 3 | |
| 22 | - | 3 | |
| 27 | - | 3 | |
| 45 | - | 3 | |
| 70 | - | 3 | |
| 75 | - | 3 | |
| 32 | - | 3 | |
| 88 | 6 | 3 | |
| 223 | 15 | 3 | |
| 76 | - | 3 | |
| 7 | - | 2 | |
| 37 | - | 2 | |
| 44 | - | 2 | |
| 70 | - | 2 | |
| 21 | - | 2 | |
| 66 | - | 2 | |
| 51 | - | 2 | |
| 61 | - | 2 | |
| 4 | - | 2 | |
| 114 | 6 | 2 | |
| 135 | 13 | 2 | |
| 396 | 25 | 2 | |
| 23 | 2 | 2 | |
| 376 | - | 2 | |
| 21 | - | 2 | |
| 189 | - | 2 | |
| 195 | - | 2 | |
| 11 | - | 1 | |
| 10 | - | 1 | |
| 10 | - | 1 | |
| 10 | - | 1 | |
| 1 | - | 1 | |
| 3 | - | 1 | |
| 39 | - | 1 | |
| 10 | - | 1 | |
| 3 | - | 1 | |
| 3 | - | 1 |
Correlations
File Size vs. Commits (all time): 274 points
|
|
654.0 | lines of code min: 1.0average: 67.93 25th percentile: 9.0 median: 35.0 75th percentile: 80.75 max: 654.0 |
|
| 0 | 375.0 | ||
|
commits (all time) min: 1.0 | average: 44.81 | 25th percentile: 9.75 | median: 22.0 | 75th percentile: 54.0 | max: 375.0
|
|||
File Size vs. Contributors (all time): 274 points
|
|
654.0 | lines of code min: 1.0average: 67.93 25th percentile: 9.0 median: 35.0 75th percentile: 80.75 max: 654.0 |
|
| 0 | 27.0 | ||
|
contributors (all time) min: 1.0 | average: 6.83 | 25th percentile: 3.0 | median: 5.0 | 75th percentile: 9.0 | max: 27.0
|
|||
File Size vs. Commits (30 days): 0 points
No data for "commits (30d)" vs. "lines of code".
File Size vs. Contributors (30 days): 0 points
No data for "contributors (30d)" vs. "lines of code".
File Size vs. Commits (90 days): 0 points
No data for "commits (90d)" vs. "lines of code".
File Size vs. Contributors (90 days): 0 points
No data for "contributors (90d)" vs. "lines of code".
About This Analysis
- File size measurements show the distribution of size of files.
- Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
- It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
- To learn more about bloaters and how to deal with long code structures, Sokrates recommends the following resources:
- Refactoring bloaters, sourcemaking.com
- The Blob Software Development Anti-Pattern, sourcemaking.com