id: 1 unit: def readCookie() file: app/com/gu/viewer/logging/RequestLoggingFilter.scala start line: 24 end line: 104 size: 64 LOC McCabe index: 9 number of parameters: 1 id: 2 unit: function enableSocialShare() file: src/modules/components/viewer.js start line: 94 end line: 177 size: 61 LOC McCabe index: 8 number of parameters: 0 id: 3 unit: function onKeyPress() file: src/modules/controllers/keyboard.js start line: 5 end line: 47 size: 34 LOC McCabe index: 19 number of parameters: 1 id: 4 unit: def previewAuthCallback() file: app/com/gu/viewer/proxy/PreviewProxy.scala start line: 124 end line: 159 size: 28 LOC McCabe index: 8 number of parameters: 1 id: 5 unit: private def proxy() file: app/com/gu/viewer/proxy/ProxyClient.scala start line: 18 end line: 49 size: 27 LOC McCabe index: 4 number of parameters: 4 id: 6 unit: private def doPreviewAuth() file: app/com/gu/viewer/proxy/PreviewProxy.scala start line: 34 end line: 65 size: 22 LOC McCabe index: 7 number of parameters: 1 id: 7 unit: def asResult() file: app/com/gu/viewer/proxy/ProxyResult.scala start line: 29 end line: 55 size: 20 LOC McCabe index: 5 number of parameters: 1 id: 8 unit: function updateViewer() file: src/modules/components/viewer.js start line: 12 end line: 38 size: 20 LOC McCabe index: 7 number of parameters: 2 id: 9 unit: def sendEmail() file: app/com/gu/viewer/controllers/Email.scala start line: 21 end line: 43 size: 19 LOC McCabe index: 3 number of parameters: 1 id: 10 unit: function init() file: src/modules/controllers/history.js start line: 6 end line: 30 size: 18 LOC McCabe index: 5 number of parameters: 0 id: 11 unit: def apply() file: app/com/gu/viewer/proxy/PreviewSession.scala start line: 50 end line: 73 size: 17 LOC McCabe index: 1 number of parameters: 1 id: 12 unit: function enableReader() file: src/modules/components/viewer.js start line: 73 end line: 92 size: 16 LOC McCabe index: 3 number of parameters: 0 id: 13 unit: def catchRelativePost() file: app/com/gu/viewer/controllers/Proxy.scala start line: 63 end line: 80 size: 15 LOC McCabe index: 6 number of parameters: 1 id: 14 unit: def resultFrom() file: app/com/gu/viewer/proxy/ProxyResult.scala start line: 58 end line: 71 size: 14 LOC McCabe index: 3 number of parameters: 1 id: 15 unit: function triggerAnalytics() file: src/modules/controllers/application.js start line: 86 end line: 102 size: 14 LOC McCabe index: 11 number of parameters: 2 id: 16 unit: function toggleDesktop() file: src/modules/controllers/application.js start line: 122 end line: 136 size: 14 LOC McCabe index: 3 number of parameters: 0 id: 17 unit: function toggleAds() file: src/modules/controllers/application.js start line: 138 end line: 155 size: 14 LOC McCabe index: 2 number of parameters: 0 id: 18 unit: function onViewerLoad() file: src/modules/components/viewer.js start line: 221 end line: 234 size: 13 LOC McCabe index: 5 number of parameters: 1 id: 19 unit: getEnabledHrefs() file: src/modules/utils/localStorage.js start line: 26 end line: 47 size: 13 LOC McCabe index: 4 number of parameters: 0 id: 20 unit: function replaceLocationHistory() file: src/modules/controllers/history.js start line: 41 end line: 58 size: 13 LOC McCabe index: 3 number of parameters: 1 id: 21 unit: function checkDesktopEnabled() file: src/modules/controllers/application.js start line: 25 end line: 39 size: 13 LOC McCabe index: 5 number of parameters: 0 id: 22 unit: private def doPreviewProxyPost() file: app/com/gu/viewer/proxy/PreviewProxy.scala start line: 85 end line: 101 size: 12 LOC McCabe index: 5 number of parameters: 1 id: 23 unit: def readTag() file: app/com/gu/viewer/aws/AwsInstanceTags.scala start line: 14 end line: 25 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 24 unit: def viewer() file: app/com/gu/viewer/controllers/Application.scala start line: 35 end line: 48 size: 12 LOC McCabe index: 4 number of parameters: 3 id: 25 unit: function init() file: src/modules/controllers/analytics.js start line: 3 end line: 16 size: 12 LOC McCabe index: 5 number of parameters: 0 id: 26 unit: def asCookies: Seq[Cookie] = Seq() file: app/com/gu/viewer/proxy/PreviewSession.scala start line: 10 end line: 21 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 27 unit: private def doPreviewProxy() file: app/com/gu/viewer/proxy/PreviewProxy.scala start line: 68 end line: 83 size: 11 LOC McCabe index: 4 number of parameters: 1 id: 28 unit: function addBlankToLinks() file: src/modules/components/viewer.js start line: 258 end line: 269 size: 11 LOC McCabe index: 3 number of parameters: 0 id: 29 unit: function checkAdBlockStatus() file: src/modules/controllers/application.js start line: 41 end line: 52 size: 11 LOC McCabe index: 3 number of parameters: 0 id: 30 unit: function appPreview() file: src/modules/controllers/application.js start line: 157 end line: 167 size: 11 LOC McCabe index: 3 number of parameters: 0 id: 31 unit: private def formatEmail() file: app/com/gu/viewer/controllers/Email.scala start line: 45 end line: 54 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 32 unit: function updateUrl() file: src/modules/components/viewer.js start line: 45 end line: 62 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 33 unit: function restyleViewer() file: src/modules/components/viewer.js start line: 186 end line: 207 size: 10 LOC McCabe index: 4 number of parameters: 2 id: 34 unit: function markSelected() file: src/modules/utils/button.js start line: 2 end line: 14 size: 10 LOC McCabe index: 3 number of parameters: 2 id: 35 unit: function appPreviewRequest() file: src/modules/utils/api.js start line: 3 end line: 14 size: 10 LOC McCabe index: 1 number of parameters: 0 id: 36 unit: function updateClasses() file: src/modules/controllers/application.js start line: 72 end line: 84 size: 10 LOC McCabe index: 3 number of parameters: 0 id: 37 unit: private def loginCallbackUrl() file: app/com/gu/viewer/proxy/PreviewProxy.scala start line: 18 end line: 32 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 38 unit: def redirectRelative() file: app/com/gu/viewer/controllers/Proxy.scala start line: 48 end line: 59 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 39 unit: function detectMobileAndRedirect() file: src/modules/components/viewer.js start line: 236 end line: 244 size: 9 LOC McCabe index: 4 number of parameters: 0 id: 40 unit: function updateMode() file: src/modules/controllers/application.js start line: 104 end line: 116 size: 9 LOC McCabe index: 4 number of parameters: 1 id: 41 unit: def apply() file: app/com/gu/viewer/proxy/ProxyRequest.scala start line: 9 end line: 17 size: 8 LOC McCabe index: 5 number of parameters: 5 id: 42 unit: function printViewer() file: src/modules/components/viewer.js start line: 64 end line: 71 size: 8 LOC McCabe index: 2 number of parameters: 0 id: 43 unit: function init() file: src/modules/controllers/keyboard.js start line: 49 end line: 58 size: 8 LOC McCabe index: 2 number of parameters: 0 id: 44 unit: function onPopState() file: src/modules/controllers/history.js start line: 32 end line: 39 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 45 unit: function init() file: src/modules/controllers/application.js start line: 13 end line: 23 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 46 unit: function bindClicks() file: src/modules/controllers/application.js start line: 54 end line: 61 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 47 unit: def proxy() file: app/com/gu/viewer/controllers/Proxy.scala start line: 24 end line: 31 size: 7 LOC McCabe index: 4 number of parameters: 2 id: 48 unit: var transitionEndHandler = function() file: src/modules/components/viewer.js start line: 188 end line: 195 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 49 unit: getEnabledHrefs() file: src/modules/utils/localStorage.js start line: 52 end line: 61 size: 7 LOC McCabe index: 3 number of parameters: 0 id: 50 unit: def apply() file: app/com/gu/viewer/proxy/ProxyRequest.scala start line: 33 end line: 40 size: 6 LOC McCabe index: 2 number of parameters: 4 id: 51 unit: def header() file: app/com/gu/viewer/proxy/ProxyResponse.scala start line: 13 end line: 21 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 52 unit: def withPlaySessionFrom() file: app/com/gu/viewer/proxy/PreviewSession.scala start line: 31 end line: 40 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 53 unit: function remove() file: src/modules/components/viewer.js start line: 179 end line: 184 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 54 unit: function bindClickToAttributeName() file: src/modules/utils/button.js start line: 16 end line: 22 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 55 unit: function bindClickToModeUpdate() file: src/modules/utils/button.js start line: 24 end line: 36 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 56 unit: var bindClick = function() file: src/modules/utils/button.js start line: 26 end line: 31 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 57 unit: function styleWithAttributeNameAndValue() file: src/modules/utils/button.js start line: 38 end line: 44 size: 6 LOC McCabe index: 2 number of parameters: 4 id: 58 unit: private def startLogging() file: app/AppLoader.scala start line: 11 end line: 15 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 59 unit: def proxy() file: app/com/gu/viewer/proxy/LiveProxy.scala start line: 12 end line: 17 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 60 unit: def proxyPost() file: app/com/gu/viewer/proxy/LiveProxy.scala start line: 19 end line: 23 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 61 unit: function trackEvent() file: src/modules/controllers/analytics.js start line: 18 end line: 22 size: 5 LOC McCabe index: 2 number of parameters: 5 id: 62 unit: function updateViews() file: src/modules/controllers/application.js start line: 64 end line: 70 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 63 unit: override def load() file: app/AppLoader.scala start line: 5 end line: 9 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 64 unit: private def getConfigString() file: app/com/gu/viewer/config/AppConfig.scala start line: 8 end line: 11 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 65 unit: def proxy() file: app/com/gu/viewer/proxy/PreviewProxy.scala start line: 107 end line: 110 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 66 unit: def proxyPost() file: app/com/gu/viewer/proxy/PreviewProxy.scala start line: 112 end line: 115 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 67 unit: function reloadiFrame() file: src/modules/components/viewer.js start line: 40 end line: 43 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 68 unit: function enableAdBlock() file: src/modules/components/viewer.js start line: 246 end line: 250 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 69 unit: function disableAdBlock() file: src/modules/components/viewer.js start line: 252 end line: 256 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 70 unit: function init() file: src/modules/components/viewer.js start line: 271 end line: 274 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 71 unit: function showError() file: src/modules/controllers/error.js start line: 6 end line: 9 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 72 unit: function hideError() file: src/modules/controllers/error.js start line: 11 end line: 14 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 73 unit: def readAuthenticatedUser() file: app/com/gu/viewer/logging/RequestLoggingFilter.scala start line: 20 end line: 22 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 74 unit: def previewViewer =() file: app/com/gu/viewer/controllers/Application.scala start line: 27 end line: 29 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 75 unit: def liveViewer =() file: app/com/gu/viewer/controllers/Application.scala start line: 31 end line: 33 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 76 unit: override def validateUser() file: app/com/gu/viewer/controllers/PanDomainAuthActions.scala start line: 11 end line: 13 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 77 unit: setTimeout() file: src/modules/components/viewer.js start line: 58 end line: 60 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 78 unit: function scrollViewer() file: src/modules/components/viewer.js start line: 209 end line: 211 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 79 unit: function scrollViewerDown() file: src/modules/components/viewer.js start line: 213 end line: 215 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 80 unit: function scrollViewerUp() file: src/modules/components/viewer.js start line: 217 end line: 219 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 81 unit: function getEnabledHrefs() file: src/modules/utils/localStorage.js start line: 8 end line: 10 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 82 unit: function saveEnabledHrefs() file: src/modules/utils/localStorage.js start line: 12 end line: 14 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 83 unit: function saveAdBlockStatus() file: src/modules/utils/localStorage.js start line: 16 end line: 18 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 84 unit: function getAdBlockStatus() file: src/modules/utils/localStorage.js start line: 20 end line: 22 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 85 unit: function showOverlay() file: src/modules/controllers/overlay.js start line: 8 end line: 14 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 86 unit: buttons() file: src/modules/controllers/overlay.js start line: 11 end line: 13 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 87 unit: function hideOverlay() file: src/modules/controllers/overlay.js start line: 16 end line: 22 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 88 unit: buttons() file: src/modules/controllers/overlay.js start line: 19 end line: 21 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 89 unit: function recordOrientationChange() file: src/modules/controllers/analytics.js start line: 24 end line: 26 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 90 unit: function redirectToPreview() file: src/modules/controllers/application.js start line: 118 end line: 120 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 91 unit: function addEnabledHref() file: src/modules/utils/localStorage.js start line: 24 end line: 48 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 92 unit: function removeEnabledHref() file: src/modules/utils/localStorage.js start line: 50 end line: 62 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 93 unit: var overlayEl = function() file: src/modules/controllers/overlay.js start line: 1 end line: 1 size: 1 LOC McCabe index: 1 number of parameters: 0 id: 94 unit: var okButton = function() file: src/modules/controllers/overlay.js start line: 4 end line: 4 size: 1 LOC McCabe index: 1 number of parameters: 0 id: 95 unit: var closeButton = function() file: src/modules/controllers/overlay.js start line: 5 end line: 5 size: 1 LOC McCabe index: 1 number of parameters: 0 id: 96 unit: var buttons = function() file: src/modules/controllers/overlay.js start line: 6 end line: 6 size: 1 LOC McCabe index: 1 number of parameters: 0