awslabs / collectd-cloudwatch
File Size

The distribution of size of files (measured in lines of code).

Intro
  • 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...
File Size Overall
  • There are 30 files with 2,198 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (830 lines of code)
    • 1 medium size files (276 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (292 lines of code)
    • 26 very small files (800 lines of code)
0% | 37% | 12% | 13% | 36%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py0% | 37% | 12% | 13% | 36%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 97% | 0% | 0% | 2%
src/cloudwatch/modules/collectd_integration0% | 0% | 99% | 0% | <1%
src/cloudwatch/modules0% | 0% | 0% | 55% | 44%
src/cloudwatch/modules/configuration0% | 0% | 0% | 32% | 67%
src/cloudwatch/modules/client0% | 0% | 0% | 0% | 100%
src/cloudwatch/modules/logger0% | 0% | 0% | 0% | 100%
src/cloudwatch0% | 0% | 0% | 0% | 100%
Longest Files (Top 30)
File# lines# units
setup.py
in src
830 77
dataset.py
in src/cloudwatch/modules/collectd_integration
276 5
flusher.py
in src/cloudwatch/modules
147 14
confighelper.py
in src/cloudwatch/modules/configuration
145 16
whitelist.py
in src/cloudwatch/modules/configuration
95 13
metricdata.py
in src/cloudwatch/modules
88 14
metadatareader.py
in src/cloudwatch/modules/configuration
79 9
putclient.py
in src/cloudwatch/modules/client
79 8
querystringbuilder.py
in src/cloudwatch/modules/client
56 6
configreader.py
in src/cloudwatch/modules/configuration
54 2
ec2getclient.py
in src/cloudwatch/modules/client
53 6
readerutils.py
in src/cloudwatch/modules/configuration
43 7
logger.py
in src/cloudwatch/modules/logger
42 11
baserequestbuilder.py
in src/cloudwatch/modules/client
38 6
signer.py
in src/cloudwatch/modules/client
33 8
credentialsreader.py
in src/cloudwatch/modules/configuration
32 2
requestbuilder.py
in src/cloudwatch/modules/client
30 5
ec2requestbuilder.py
in src/cloudwatch/modules/client
23 4
cloudwatch_writer.py
in src
21 2
collectd.py
in src/cloudwatch/modules
14 7
awsutils.py
in src/cloudwatch/modules
5 2
awscredentials.py
in src/cloudwatch/modules
5 1
plugininfo.py
in src/cloudwatch/modules
3 -
__init__.py
in src
1 -
__init__.py
in src/cloudwatch
1 -
__init__.py
in src/cloudwatch/modules
1 -
__init__.py
in src/cloudwatch/modules/configuration
1 -
__init__.py
in src/cloudwatch/modules/logger
1 -
__init__.py
in src/cloudwatch/modules/client
1 -
__init__.py
in src/cloudwatch/modules/collectd_integration
1 -
Files With Most Units (Top 20)
File# lines# units
setup.py
in src
830 77
confighelper.py
in src/cloudwatch/modules/configuration
145 16
metricdata.py
in src/cloudwatch/modules
88 14
flusher.py
in src/cloudwatch/modules
147 14
whitelist.py
in src/cloudwatch/modules/configuration
95 13
logger.py
in src/cloudwatch/modules/logger
42 11
metadatareader.py
in src/cloudwatch/modules/configuration
79 9
putclient.py
in src/cloudwatch/modules/client
79 8
signer.py
in src/cloudwatch/modules/client
33 8
readerutils.py
in src/cloudwatch/modules/configuration
43 7
collectd.py
in src/cloudwatch/modules
14 7
ec2getclient.py
in src/cloudwatch/modules/client
53 6
querystringbuilder.py
in src/cloudwatch/modules/client
56 6
baserequestbuilder.py
in src/cloudwatch/modules/client
38 6
requestbuilder.py
in src/cloudwatch/modules/client
30 5
dataset.py
in src/cloudwatch/modules/collectd_integration
276 5
ec2requestbuilder.py
in src/cloudwatch/modules/client
23 4
cloudwatch_writer.py
in src
21 2
awsutils.py
in src/cloudwatch/modules
5 2
configreader.py
in src/cloudwatch/modules/configuration
54 2
Files With Long Lines (Top 12)

There are 12 files with lines longer than 120 characters. In total, there are 68 long lines.

File# lines# units# long lines
setup.py
in src
830 77 31
metadatareader.py
in src/cloudwatch/modules/configuration
79 9 6
flusher.py
in src/cloudwatch/modules
147 14 6
putclient.py
in src/cloudwatch/modules/client
79 8 5
metricdata.py
in src/cloudwatch/modules
88 14 4
configreader.py
in src/cloudwatch/modules/configuration
54 2 3
whitelist.py
in src/cloudwatch/modules/configuration
95 13 3
confighelper.py
in src/cloudwatch/modules/configuration
145 16 3
ec2getclient.py
in src/cloudwatch/modules/client
53 6 3
signer.py
in src/cloudwatch/modules/client
33 8 2
requestbuilder.py
in src/cloudwatch/modules/client
30 5 1
dataset.py
in src/cloudwatch/modules/collectd_integration
276 5 1