GerritCodeReview / polymer-bridges
Unit Size

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

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 33 units with 89 lines of code in units (7.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 1 small units (13 lines of code)
    • 32 very small units (76 lines of code)
0% | 0% | 0% | 14% | 85%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 0% | 0% | 14% | 85%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
polymer0% | 0% | 0% | 14% | 85%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function polyfillDeclareNamespace()
in polymer/lib/utils/boot_bridge.js
13 4 0
function polyfillGoogRequire()
in polymer/lib/utils/require_shim.js
7 2 0
require()
in polymer/lib/utils/require_shim.js
7 2 1
const lenientDeclareModuleId = function()
in polymer/lib/utils/boot_bridge.js
6 2 1
set()
in polymer/lib/utils/boot_bridge.js
4 1 1
get()
in polymer/lib/utils/boot_bridge.js
3 1 0
window.Polymer = function()
in polymer/lib/utils/boot_bridge.js
3 1 1
Polymer._polymerFn = function()
in polymer/lib/utils/boot_bridge.js
3 1 1
get rootPath()
in polymer/lib/utils/settings_bridge.js
3 1 0
get sanitizeDOMValue()
in polymer/lib/utils/settings_bridge.js
3 1 0
get passiveTouchGestures()
in polymer/lib/utils/settings_bridge.js
3 1 0
get strictTemplatePolicy()
in polymer/lib/utils/settings_bridge.js
3 1 0
get allowTemplateFromDomModule()
in polymer/lib/utils/settings_bridge.js
3 1 0
get legacyOptimizations()
in polymer/lib/utils/settings_bridge.js
3 1 0
get syncInitialRender()
in polymer/lib/utils/settings_bridge.js
3 1 0
get()
in polymer/lib/utils/settings_bridge.js
3 1 0
set()
in polymer/lib/utils/settings_bridge.js
3 1 1
function Polymer_PropertiesChanged()
in polymer/externs/closure-types.js
1 1 0
function Polymer_PropertyAccessors()
in polymer/externs/closure-types.js
1 1 0
function Polymer_TemplateStamp()
in polymer/externs/closure-types.js
1 1 0