id: 1 unit: module.exports = function() file: tasks/config/sails-linker.js start line: 14 end line: 267 size: 229 LOC McCabe index: 1 number of parameters: 1 id: 2 unit: passport.connect = function() file: api/services/passport.js start line: 67 end line: 179 size: 67 LOC McCabe index: 20 number of parameters: 4 id: 3 unit: clone: function clone() file: assets/app/models/Github.js start line: 265 end line: 334 size: 61 LOC McCabe index: 10 number of parameters: 3 id: 4 unit: addJob: function() file: api/services/SQS.js start line: 11 end line: 72 size: 58 LOC McCabe index: 11 number of parameters: 1 id: 5 unit: update: function() file: assets/app/views/editor/edit-main.js start line: 43 end line: 103 size: 50 LOC McCabe index: 8 number of parameters: 0 id: 6 unit: exports.register = function() file: api/services/protocols/local.js start line: 26 end line: 84 size: 49 LOC McCabe index: 10 number of parameters: 3 id: 7 unit: exports.login = function() file: api/services/protocols/local.js start line: 136 end line: 186 size: 45 LOC McCabe index: 8 number of parameters: 4 id: 8 unit: passport.loadStrategies = function() file: api/services/passport.js start line: 276 end line: 337 size: 41 LOC McCabe index: 10 number of parameters: 0 id: 9 unit: forkRepository: function() file: api/services/GitHub.js start line: 16 end line: 59 size: 38 LOC McCabe index: 6 number of parameters: 3 id: 10 unit: render: function() file: assets/app/views/editor/breadcrumb.js start line: 21 end line: 63 size: 38 LOC McCabe index: 4 number of parameters: 0 id: 11 unit: provider: function() file: api/controllers/AuthController.js start line: 41 end line: 76 size: 35 LOC McCabe index: 6 number of parameters: 2 id: 12 unit: module.exports = function() file: api/policies/filterCurrentUser.js start line: 6 end line: 52 size: 35 LOC McCabe index: 10 number of parameters: 3 id: 13 unit: clone: function cloneSite() file: api/controllers/SiteController.js start line: 10 end line: 48 size: 34 LOC McCabe index: 6 number of parameters: 2 id: 14 unit: useAsset: function() file: assets/app/views/editor/add-image.js start line: 43 end line: 79 size: 33 LOC McCabe index: 3 number of parameters: 1 id: 15 unit: initialize: function() file: assets/app/views/editor/edit-file.js start line: 27 end line: 77 size: 33 LOC McCabe index: 2 number of parameters: 1 id: 16 unit: exports.up = function() file: migrations/20151015171458-merge-sites.js start line: 5 end line: 54 size: 32 LOC McCabe index: 2 number of parameters: 2 id: 17 unit: (function()() file: app.js start line: 32 end line: 65 size: 29 LOC McCabe index: 4 number of parameters: 1 id: 18 unit: saveDocument: function() file: assets/app/views/editor/edit-file.js start line: 344 end line: 376 size: 26 LOC McCabe index: 6 number of parameters: 3 id: 19 unit: render: function() file: assets/app/views/site/builds.js start line: 13 end line: 41 size: 26 LOC McCabe index: 8 number of parameters: 0 id: 20 unit: function tryAgain() file: api/controllers/AuthController.js start line: 95 end line: 131 size: 25 LOC McCabe index: 10 number of parameters: 1 id: 21 unit: github: function() file: api/controllers/WebhookController.js start line: 8 end line: 69 size: 25 LOC McCabe index: 10 number of parameters: 2 id: 22 unit: fetchConfig: function() file: assets/app/models/Github.js start line: 356 end line: 399 size: 25 LOC McCabe index: 2 number of parameters: 0 id: 23 unit: parseSettings: function() file: assets/app/views/editor/edit-file.js start line: 148 end line: 174 size: 25 LOC McCabe index: 4 number of parameters: 1 id: 24 unit: home: function() file: assets/app/views/main.js start line: 36 end line: 68 size: 25 LOC McCabe index: 5 number of parameters: 0 id: 25 unit: module.exports = function() file: tasks/config/coffee.js start line: 12 end line: 38 size: 25 LOC McCabe index: 1 number of parameters: 1 id: 26 unit: jekyll: function() file: api/hooks/buildEngine/index.js start line: 11 end line: 37 size: 24 LOC McCabe index: 2 number of parameters: 2 id: 27 unit: passport.callback = function() file: api/services/passport.js start line: 222 end line: 252 size: 24 LOC McCabe index: 11 number of parameters: 3 id: 28 unit: exports.connect = function() file: api/services/protocols/local.js start line: 97 end line: 122 size: 24 LOC McCabe index: 3 number of parameters: 3 id: 29 unit: publish: function() file: api/hooks/buildEngine/index.js start line: 150 end line: 189 size: 22 LOC McCabe index: 3 number of parameters: 3 id: 30 unit: function checkSite() file: api/controllers/UserController.js start line: 46 end line: 66 size: 21 LOC McCabe index: 6 number of parameters: 1 id: 31 unit: initialize: function() file: assets/app/models/Github.js start line: 11 end line: 36 size: 21 LOC McCabe index: 4 number of parameters: 1 id: 32 unit: commit: function() file: assets/app/models/Github.js start line: 67 end line: 111 size: 21 LOC McCabe index: 6 number of parameters: 2 id: 33 unit: createDraftBranch: function() file: assets/app/models/Github.js start line: 112 end line: 140 size: 21 LOC McCabe index: 2 number of parameters: 1 id: 34 unit: initializeContentEditor: function() file: assets/app/views/editor/edit-file.js start line: 175 end line: 198 size: 21 LOC McCabe index: 7 number of parameters: 2 id: 35 unit: module.exports = function() file: tasks/config/copy.js start line: 16 end line: 38 size: 21 LOC McCabe index: 1 number of parameters: 1 id: 36 unit: module.exports = function() file: Gruntfile.js start line: 15 end line: 81 size: 20 LOC McCabe index: 2 number of parameters: 1 id: 37 unit: proxy: function() file: api/controllers/PreviewController.js start line: 9 end line: 33 size: 20 LOC McCabe index: 7 number of parameters: 3 id: 38 unit: afterCreate: function() file: api/models/Build.js start line: 39 end line: 60 size: 20 LOC McCabe index: 12 number of parameters: 2 id: 39 unit: module.exports = function() file: api/policies/sessionAuth.js start line: 10 end line: 40 size: 20 LOC McCabe index: 10 number of parameters: 3 id: 40 unit: setWebhook: function() file: api/services/GitHub.js start line: 66 end line: 90 size: 20 LOC McCabe index: 2 number of parameters: 3 id: 41 unit: function walk() file: api/services/S3.js start line: 106 end line: 130 size: 20 LOC McCabe index: 6 number of parameters: 2 id: 42 unit: initialize: function() file: assets/app/models/Document.js start line: 6 end line: 25 size: 20 LOC McCabe index: 6 number of parameters: 1 id: 43 unit: lockContent: function() file: assets/app/views/editor/edit-file.js start line: 200 end line: 230 size: 20 LOC McCabe index: 6 number of parameters: 1 id: 44 unit: token: getToken() file: assets/app/views/editor/edit-main.js start line: 29 end line: 53 size: 20 LOC McCabe index: 3 number of parameters: 0 id: 45 unit: initializeDocument: function() file: assets/app/views/editor/edit-file.js start line: 90 end line: 110 size: 19 LOC McCabe index: 2 number of parameters: 1 id: 46 unit: onTemplateSelection: function onTemplateSelection() file: assets/app/views/site/add.js start line: 47 end line: 73 size: 19 LOC McCabe index: 2 number of parameters: 1 id: 47 unit: registerSite: function() file: api/models/Site.js start line: 83 end line: 102 size: 18 LOC McCabe index: 7 number of parameters: 2 id: 48 unit: passport.disconnect = function() file: api/services/passport.js start line: 345 end line: 366 size: 18 LOC McCabe index: 4 number of parameters: 3 id: 49 unit: url: function() file: assets/app/models/Github.js start line: 37 end line: 57 size: 18 LOC McCabe index: 10 number of parameters: 1 id: 50 unit: extendSettingFields: function() file: assets/app/views/editor/edit-file.js start line: 129 end line: 147 size: 18 LOC McCabe index: 2 number of parameters: 1 id: 51 unit: link: function() file: assets/app/views/editor/files.js start line: 34 end line: 53 size: 18 LOC McCabe index: 5 number of parameters: 2 id: 52 unit: render: function renderSiteView() file: assets/app/views/site/list-item.js start line: 17 end line: 34 size: 18 LOC McCabe index: 7 number of parameters: 0 id: 53 unit: checkPermissions: function() file: api/services/GitHub.js start line: 127 end line: 148 size: 17 LOC McCabe index: 4 number of parameters: 4 id: 54 unit: mergePR: function() file: assets/app/models/Github.js start line: 207 end line: 230 size: 17 LOC McCabe index: 2 number of parameters: 1 id: 55 unit: saveSuccess: function() file: assets/app/views/editor/edit-file.js start line: 275 end line: 293 size: 17 LOC McCabe index: 2 number of parameters: 2 id: 56 unit: deleteDraft: function() file: assets/app/views/editor/edit-file.js start line: 310 end line: 326 size: 17 LOC McCabe index: 2 number of parameters: 1 id: 57 unit: publishContent: function() file: assets/app/views/editor/edit-file.js start line: 327 end line: 343 size: 17 LOC McCabe index: 2 number of parameters: 1 id: 58 unit: render: function renderSiteListView() file: assets/app/views/site/list.js start line: 18 end line: 38 size: 17 LOC McCabe index: 2 number of parameters: 1 id: 59 unit: completeJob: function() file: api/models/Build.js start line: 106 end line: 150 size: 16 LOC McCabe index: 8 number of parameters: 3 id: 60 unit: validateUser: function() file: api/services/GitHub.js start line: 97 end line: 118 size: 16 LOC McCabe index: 4 number of parameters: 2 id: 61 unit: complete: function() file: assets/app/models/Github.js start line: 88 end line: 109 size: 16 LOC McCabe index: 5 number of parameters: 1 id: 62 unit: createPR: function() file: assets/app/models/Github.js start line: 141 end line: 161 size: 16 LOC McCabe index: 1 number of parameters: 1 id: 63 unit: getPR: function() file: assets/app/models/Github.js start line: 162 end line: 183 size: 16 LOC McCabe index: 1 number of parameters: 1 id: 64 unit: existingSelected: function() file: assets/app/views/editor/add-image.js start line: 90 end line: 108 size: 16 LOC McCabe index: 5 number of parameters: 1 id: 65 unit: initializeSettingsEditor: function() file: assets/app/views/editor/edit-file.js start line: 111 end line: 128 size: 16 LOC McCabe index: 3 number of parameters: 1 id: 66 unit: deleteBranch: function() file: assets/app/models/Github.js start line: 231 end line: 252 size: 15 LOC McCabe index: 2 number of parameters: 1 id: 67 unit: uploadNewAsset: function() file: assets/app/views/editor/add-image.js start line: 27 end line: 42 size: 15 LOC McCabe index: 2 number of parameters: 1 id: 68 unit: saveFailure: function() file: assets/app/views/editor/edit-file.js start line: 294 end line: 309 size: 15 LOC McCabe index: 2 number of parameters: 1 id: 69 unit: render: function() file: assets/app/views/editor/pages.js start line: 19 end line: 47 size: 15 LOC McCabe index: 2 number of parameters: 0 id: 70 unit: run: function() file: assets/app/views/editor/prosemirror/create.js start line: 55 end line: 73 size: 15 LOC McCabe index: 1 number of parameters: 2 id: 71 unit: lock: function lockEditing() file: api/controllers/SiteController.js start line: 61 end line: 83 size: 14 LOC McCabe index: 3 number of parameters: 2 id: 72 unit: '': function() file: api/controllers/UserController.js start line: 22 end line: 67 size: 14 LOC McCabe index: 4 number of parameters: 2 id: 73 unit: hugo: function() file: api/hooks/buildEngine/index.js start line: 39 end line: 55 size: 14 LOC McCabe index: 1 number of parameters: 2 id: 74 unit: addJob: function() file: api/models/Build.js start line: 80 end line: 98 size: 14 LOC McCabe index: 3 number of parameters: 1 id: 75 unit: module.exports = function() file: api/policies/previewProxy.js start line: 1 end line: 16 size: 14 LOC McCabe index: 7 number of parameters: 3 id: 76 unit: function sync() file: api/services/S3.js start line: 61 end line: 104 size: 14 LOC McCabe index: 2 number of parameters: 3 id: 77 unit: success: function() file: assets/app/models/Github.js start line: 428 end line: 441 size: 14 LOC McCabe index: 3 number of parameters: 1 id: 78 unit: saveNewDocument: function() file: assets/app/views/editor/edit-file.js start line: 377 end line: 393 size: 14 LOC McCabe index: 2 number of parameters: 0 id: 79 unit: initialize: function() file: assets/app/views/editor/edit-main.js start line: 25 end line: 42 size: 14 LOC McCabe index: 2 number of parameters: 1 id: 80 unit: render: function() file: assets/app/views/editor/files.js start line: 16 end line: 33 size: 14 LOC McCabe index: 3 number of parameters: 0 id: 81 unit: onSubmitGithubRepo: function onSubmitGithubRepo() file: assets/app/views/site/add.js start line: 33 end line: 46 size: 14 LOC McCabe index: 2 number of parameters: 1 id: 82 unit: module.exports = function() file: tasks/config/less.js start line: 13 end line: 28 size: 14 LOC McCabe index: 1 number of parameters: 1 id: 83 unit: module.exports = function() file: tasks/register/prod.js start line: 1 end line: 14 size: 14 LOC McCabe index: 1 number of parameters: 1 id: 84 unit: callback: function() file: api/controllers/AuthController.js start line: 94 end line: 150 size: 13 LOC McCabe index: 4 number of parameters: 2 id: 85 unit: afterCreate: function() file: api/models/Site.js start line: 65 end line: 77 size: 13 LOC McCabe index: 3 number of parameters: 2 id: 86 unit: function encode() file: api/services/S3.js start line: 45 end line: 59 size: 13 LOC McCabe index: 4 number of parameters: 3 id: 87 unit: initialize: function() file: assets/app/app.js start line: 14 end line: 29 size: 13 LOC McCabe index: 1 number of parameters: 0 id: 88 unit: fetchDrafts: function() file: assets/app/models/Github.js start line: 417 end line: 446 size: 13 LOC McCabe index: 1 number of parameters: 0 id: 89 unit: getSettingsFromEditor: function() file: assets/app/views/editor/edit-file.js start line: 394 end line: 408 size: 13 LOC McCabe index: 2 number of parameters: 0 id: 90 unit: function next() file: migrations/20151015171458-merge-sites.js start line: 39 end line: 51 size: 13 LOC McCabe index: 3 number of parameters: 1 id: 91 unit: module.exports = function() file: tasks/config/jst.js start line: 15 end line: 45 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 92 unit: static: function() file: api/hooks/buildEngine/index.js start line: 57 end line: 71 size: 12 LOC McCabe index: 1 number of parameters: 2 id: 93 unit: _run: function() file: api/hooks/buildEngine/index.js start line: 87 end line: 140 size: 12 LOC McCabe index: 3 number of parameters: 3 id: 94 unit: passport.endpoint = function() file: api/services/passport.js start line: 190 end line: 210 size: 12 LOC McCabe index: 3 number of parameters: 2 id: 95 unit: complete: function() file: assets/app/models/Github.js start line: 366 end line: 378 size: 12 LOC McCabe index: 4 number of parameters: 1 id: 96 unit: render: function() file: assets/app/views/editor/edit-file.js start line: 231 end line: 245 size: 12 LOC McCabe index: 4 number of parameters: 0 id: 97 unit: onError: function onError() file: assets/app/views/site/add.js start line: 86 end line: 97 size: 12 LOC McCabe index: 6 number of parameters: 1 id: 98 unit: exports.down = function() file: migrations/20150623034530-initial.js start line: 16 end line: 29 size: 12 LOC McCabe index: 2 number of parameters: 2 id: 99 unit: module.exports = function() file: tasks/config/sync.js start line: 14 end line: 27 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 100 unit: module.exports = function() file: tasks/config/watch.js start line: 15 end line: 34 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 101 unit: exports.authorize = function() file: api/services/protocols/bearer.js start line: 11 end line: 23 size: 11 LOC McCabe index: 5 number of parameters: 2 id: 102 unit: module.exports = function() file: api/services/protocols/oauth.js start line: 20 end line: 32 size: 11 LOC McCabe index: 2 number of parameters: 5 id: 103 unit: module.exports = function() file: api/services/protocols/oauth2.js start line: 21 end line: 33 size: 11 LOC McCabe index: 2 number of parameters: 5 id: 104 unit: toMarkdown: function() file: assets/app/models/Document.js start line: 39 end line: 53 size: 11 LOC McCabe index: 4 number of parameters: 0 id: 105 unit: save: function() file: assets/app/models/Github.js start line: 184 end line: 198 size: 11 LOC McCabe index: 3 number of parameters: 2 id: 106 unit: filterAssets: function() file: assets/app/models/Github.js start line: 447 end line: 459 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 107 unit: previewButton: function() file: assets/app/views/editor/edit-file.js start line: 78 end line: 89 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 108 unit: renderWhitelistSettings: function() file: assets/app/views/editor/edit-file.js start line: 246 end line: 257 size: 11 LOC McCabe index: 2 number of parameters: 0 id: 109 unit: parse: function parse() file: assets/app/views/editor/prosemirror/create.js start line: 25 end line: 36 size: 11 LOC McCabe index: 4 number of parameters: 2 id: 110 unit: initialize: function() file: assets/app/views/main.js start line: 14 end line: 28 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 111 unit: save: function saveSiteEditView() file: assets/app/views/site/edit.js start line: 24 end line: 37 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 112 unit: module.exports = function() file: tasks/register/buildProd.js start line: 1 end line: 11 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 113 unit: function next() file: api/models/Build.js start line: 126 end line: 148 size: 10 LOC McCabe index: 6 number of parameters: 2 id: 114 unit: function hashPassword() file: api/models/Passport.js start line: 9 end line: 18 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 115 unit: walk() file: api/services/S3.js start line: 28 end line: 41 size: 10 LOC McCabe index: 3 number of parameters: 4 id: 116 unit: splitYmlMarkdown: function() file: assets/app/models/Document.js start line: 26 end line: 38 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 117 unit: getDefaults: function() file: assets/app/models/Github.js start line: 460 end line: 470 size: 10 LOC McCabe index: 5 number of parameters: 0 id: 118 unit: initialize: function() file: assets/app/views/editor/breadcrumb.js start line: 7 end line: 20 size: 10 LOC McCabe index: 4 number of parameters: 1 id: 119 unit: cleanContent: function() file: assets/app/views/editor/edit-file.js start line: 264 end line: 274 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 120 unit: getContentFromEditor: function() file: assets/app/views/editor/edit-file.js start line: 409 end line: 422 size: 10 LOC McCabe index: 4 number of parameters: 0 id: 121 unit: fileReader.onload = function() file: assets/app/views/editor/edit-main.js start line: 118 end line: 128 size: 10 LOC McCabe index: 1 number of parameters: 0 id: 122 unit: function addToList() file: assets/app/views/editor/pages.js start line: 23 end line: 32 size: 10 LOC McCabe index: 1 number of parameters: 2 id: 123 unit: defaultImageNode.prototype.serializeMarkdown = function() file: assets/app/views/editor/prosemirror/create.js start line: 39 end line: 48 size: 10 LOC McCabe index: 3 number of parameters: 2 id: 124 unit: function loadView() file: assets/app/views/main.js start line: 85 end line: 94 size: 10 LOC McCabe index: 1 number of parameters: 0 id: 125 unit: module.exports = function() file: tasks/register/linkAssets.js start line: 1 end line: 10 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 126 unit: module.exports = function() file: tasks/register/linkAssetsBuild.js start line: 1 end line: 10 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 127 unit: module.exports = function() file: tasks/register/linkAssetsBuildProd.js start line: 1 end line: 10 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 128 unit: fork: function forkSiteFromTemplate() file: api/controllers/SiteController.js start line: 50 end line: 59 size: 9 LOC McCabe index: 3 number of parameters: 2 id: 129 unit: usernames: function() file: api/controllers/UserController.js start line: 12 end line: 20 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 130 unit: function setEncoding() file: api/services/S3.js start line: 76 end line: 84 size: 9 LOC McCabe index: 2 number of parameters: 3 id: 131 unit: s3ConfigUrl: function() file: assets/app/models/Github.js start line: 335 end line: 344 size: 9 LOC McCabe index: 5 number of parameters: 1 id: 132 unit: complete: function() file: assets/app/models/Github.js start line: 406 end line: 414 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 133 unit: newSite: function() file: assets/app/views/main.js start line: 69 end line: 79 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 134 unit: showNewSiteForm: function showNewSiteForm() file: assets/app/views/site/add.js start line: 74 end line: 82 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 135 unit: onDelete: function onDelete() file: assets/app/views/site/edit.js start line: 39 end line: 47 size: 9 LOC McCabe index: 2 number of parameters: 0 id: 136 unit: exports.up = function() file: migrations/20150623034530-initial.js start line: 6 end line: 14 size: 9 LOC McCabe index: 3 number of parameters: 2 id: 137 unit: module.exports = function() file: tasks/config/concat.js start line: 13 end line: 27 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 138 unit: module.exports = function() file: tasks/config/cssmin.js start line: 11 end line: 21 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 139 unit: module.exports = function() file: tasks/config/uglify.js start line: 12 end line: 22 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 140 unit: module.exports = function() file: tasks/register/compileAssets.js start line: 1 end line: 9 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 141 unit: status: function() file: api/controllers/BuildController.js start line: 11 end line: 23 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 142 unit: function next() file: api/hooks/buildEngine/index.js start line: 101 end line: 138 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 143 unit: module.exports = function() file: api/policies/passport.js start line: 24 end line: 35 size: 8 LOC McCabe index: 1 number of parameters: 3 id: 144 unit: parse: function() file: assets/app/models/Github.js start line: 58 end line: 66 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 145 unit: publish: function() file: assets/app/models/Github.js start line: 199 end line: 206 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 146 unit: filePathFromModel: function() file: assets/app/views/editor/edit-file.js start line: 434 end line: 441 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 147 unit: module.exports = function() file: tasks/register/build.js start line: 1 end line: 8 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 148 unit: module.exports = function() file: tasks/register/syncAssets.js start line: 1 end line: 8 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 149 unit: function invokeConfigFn() file: Gruntfile.js start line: 57 end line: 63 size: 7 LOC McCabe index: 3 number of parameters: 1 id: 150 unit: function checkPermissions() file: api/controllers/UserController.js start line: 38 end line: 44 size: 7 LOC McCabe index: 4 number of parameters: 1 id: 151 unit: routes[key] = function() file: api/hooks/blueprint-options/index.js start line: 13 end line: 26 size: 7 LOC McCabe index: 3 number of parameters: 3 id: 152 unit: toJSON: function() file: api/models/Site.js start line: 51 end line: 58 size: 7 LOC McCabe index: 3 number of parameters: 0 id: 153 unit: module.exports = function() file: api/policies/filterSelfOnly.js start line: 5 end line: 22 size: 7 LOC McCabe index: 6 number of parameters: 3 id: 154 unit: function redirect() file: api/services/S3.js start line: 96 end line: 102 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 155 unit: module.exports = function() file: api/services/protocols/cas.js start line: 11 end line: 18 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 156 unit: module.exports = function() file: api/services/protocols/openid.js start line: 18 end line: 25 size: 7 LOC McCabe index: 1 number of parameters: 4 id: 157 unit: module.exports.decodeB64 = function() file: assets/app/helpers/encoding.js start line: 5 end line: 11 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 158 unit: fetchAssets: function() file: assets/app/models/Github.js start line: 400 end line: 416 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 159 unit: render: function renderUserView() file: assets/app/views/authenticate.js start line: 18 end line: 26 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 160 unit: getSettingsDisplayStyle: function() file: assets/app/views/editor/edit-file.js start line: 423 end line: 429 size: 7 LOC McCabe index: 4 number of parameters: 1 id: 161 unit: strategy: require() file: config/passport.js start line: 39 end line: 45 size: 7 LOC McCabe index: 4 number of parameters: 1 id: 162 unit: exports.up = function() file: migrations/20151119145913-add-site-publicPreview.js start line: 4 end line: 10 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 163 unit: exports.up = function() file: migrations/20160107191852-build-source.js start line: 4 end line: 11 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 164 unit: exports.down = function() file: migrations/20160107191852-build-source.js start line: 13 end line: 20 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 165 unit: module.exports = function() file: tasks/config/clean.js start line: 12 end line: 20 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 166 unit: function loadTasks() file: Gruntfile.js start line: 46 end line: 51 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 167 unit: dirname: require() file: Gruntfile.js start line: 48 end line: 58 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 168 unit: unlock: function unlockEditing() file: api/controllers/SiteController.js start line: 85 end line: 95 size: 6 LOC McCabe index: 3 number of parameters: 2 id: 169 unit: function broadcast() file: api/controllers/SiteController.js start line: 101 end line: 106 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 170 unit: site: function() file: api/controllers/WebhookController.js start line: 47 end line: 52 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 171 unit: module.exports = function() file: api/hooks/blueprint-options/index.js start line: 5 end line: 31 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 172 unit: module.exports = function() file: api/policies/buildCallback.js start line: 5 end line: 10 size: 6 LOC McCabe index: 3 number of parameters: 3 id: 173 unit: configUrl: function() file: assets/app/models/Github.js start line: 349 end line: 355 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 174 unit: getLayouts: function() file: assets/app/models/Github.js start line: 471 end line: 477 size: 6 LOC McCabe index: 3 number of parameters: 0 id: 175 unit: isAuthenticated: function isAuthenticated() file: assets/app/models/User.js start line: 16 end line: 21 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 176 unit: disableButton: function() file: assets/app/views/editor/add-image.js start line: 21 end line: 26 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 177 unit: uploadFileSelected: function() file: assets/app/views/editor/add-image.js start line: 84 end line: 89 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 178 unit: fileExtensionFromName: function() file: assets/app/views/editor/edit-file.js start line: 448 end line: 454 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 179 unit: initialize: function() file: assets/app/views/editor/pages.js start line: 11 end line: 18 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 180 unit: edit: function() file: assets/app/views/main.js start line: 80 end line: 95 size: 6 LOC McCabe index: 2 number of parameters: 4 id: 181 unit: editSite: function() file: assets/app/views/main.js start line: 96 end line: 101 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 182 unit: render: function renderSiteEditView() file: assets/app/views/site/edit.js start line: 17 end line: 22 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 183 unit: exports.up = function() file: migrations/20150730173826-site-domain-config.js start line: 4 end line: 9 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 184 unit: exports.down = function() file: migrations/20150730173826-site-domain-config.js start line: 11 end line: 16 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 185 unit: exports.down = function() file: migrations/20151119145913-add-site-publicPreview.js start line: 12 end line: 17 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 186 unit: logout: function() file: api/controllers/AuthController.js start line: 26 end line: 33 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 187 unit: exec() file: api/hooks/buildEngine/index.js start line: 166 end line: 170 size: 5 LOC McCabe index: 3 number of parameters: 1 id: 188 unit: exec() file: api/hooks/buildEngine/index.js start line: 182 end line: 186 size: 5 LOC McCabe index: 3 number of parameters: 1 id: 189 unit: function setRedirects() file: api/services/S3.js start line: 90 end line: 94 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 190 unit: walk() file: api/services/S3.js start line: 118 end line: 122 size: 5 LOC McCabe index: 2 number of parameters: 4 id: 191 unit: success: function() file: assets/app/models/Github.js start line: 132 end line: 136 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 192 unit: initialize: function() file: assets/app/views/editor/add-image.js start line: 16 end line: 20 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 193 unit: selectCard: function() file: assets/app/views/editor/add-image.js start line: 113 end line: 117 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 194 unit: fileNameFromTitle: function() file: assets/app/views/editor/edit-file.js start line: 442 end line: 447 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 195 unit: newPage: function() file: assets/app/views/editor/edit-main.js start line: 108 end line: 113 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 196 unit: uploadAsset: function() file: assets/app/views/editor/edit-main.js start line: 114 end line: 131 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 197 unit: function getToken() file: assets/app/views/editor/edit-main.js start line: 134 end line: 138 size: 5 LOC McCabe index: 3 number of parameters: 0 id: 198 unit: builds: function() file: assets/app/views/main.js start line: 102 end line: 106 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 199 unit: initialize: function initializeUserView() file: assets/app/views/nav.js start line: 15 end line: 20 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 200 unit: render: function renderUserView() file: assets/app/views/nav.js start line: 21 end line: 26 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 201 unit: logout: function() file: assets/app/views/nav.js start line: 27 end line: 31 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 202 unit: token: getToken() file: assets/app/views/site/add.js start line: 60 end line: 64 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 203 unit: function getToken() file: assets/app/views/site/add.js start line: 102 end line: 106 size: 5 LOC McCabe index: 3 number of parameters: 0 id: 204 unit: initialize: function initializeSiteListView() file: assets/app/views/site/list.js start line: 13 end line: 17 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 205 unit: user: function() file: api/controllers/WebhookController.js start line: 41 end line: 44 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 206 unit: module.exports = function() file: api/hooks/buildEngine/index.js start line: 193 end line: 196 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 207 unit: toJSON: function() file: api/models/User.js start line: 27 end line: 31 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 208 unit: home: function() file: assets/app/app.js start line: 37 end line: 40 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 209 unit: newSite: function() file: assets/app/app.js start line: 41 end line: 44 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 210 unit: edit: function() file: assets/app/app.js start line: 45 end line: 48 size: 4 LOC McCabe index: 1 number of parameters: 4 id: 211 unit: editSite: function() file: assets/app/app.js start line: 49 end line: 52 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 212 unit: builds: function() file: assets/app/app.js start line: 53 end line: 56 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 213 unit: success: function() file: assets/app/models/Github.js start line: 176 end line: 179 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 214 unit: success: function() file: assets/app/models/Github.js start line: 223 end line: 226 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 215 unit: success: function() file: assets/app/models/Github.js start line: 245 end line: 248 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 216 unit: githubConfigUrl: function() file: assets/app/models/Github.js start line: 345 end line: 348 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 217 unit: initialize: function() file: assets/app/models/Site.js start line: 21 end line: 24 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 218 unit: triggerFilePicker: function() file: assets/app/views/editor/add-image.js start line: 80 end line: 83 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 219 unit: deselectCurrentCard: function() file: assets/app/views/editor/add-image.js start line: 109 end line: 112 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 220 unit: toIsoDateString: function() file: assets/app/views/editor/edit-file.js start line: 430 end line: 433 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 221 unit: savePage: function() file: assets/app/views/editor/edit-main.js start line: 104 end line: 107 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 222 unit: initialize: function() file: assets/app/views/editor/files.js start line: 11 end line: 15 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 223 unit: render: function() file: assets/app/views/main.js start line: 29 end line: 35 size: 4 LOC McCabe index: 2 number of parameters: 0 id: 224 unit: render: function renderAddSiteView() file: assets/app/views/site/add.js start line: 29 end line: 32 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 225 unit: src: require() file: tasks/config/concat.js start line: 17 end line: 20 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 226 unit: disconnect: function() file: api/controllers/AuthController.js start line: 158 end line: 160 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 227 unit: function signBlob() file: api/controllers/WebhookController.js start line: 73 end line: 75 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 228 unit: exec() file: api/hooks/buildEngine/index.js start line: 125 end line: 136 size: 3 LOC McCabe index: 4 number of parameters: 1 id: 229 unit: exec() file: api/hooks/buildEngine/index.js start line: 130 end line: 132 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 230 unit: S3() file: api/hooks/buildEngine/index.js start line: 164 end line: 171 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 231 unit: afterUpdate: function() file: api/models/Build.js start line: 62 end line: 64 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 232 unit: validatePassword: function() file: api/models/Passport.js start line: 87 end line: 89 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 233 unit: beforeCreate: function() file: api/models/Passport.js start line: 99 end line: 101 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 234 unit: beforeUpdate: function() file: api/models/Passport.js start line: 109 end line: 111 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 235 unit: beforeCreate: function() file: api/models/Site.js start line: 61 end line: 63 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 236 unit: afterUpdate: function() file: api/models/Site.js start line: 79 end line: 81 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 237 unit: module.exports = function() file: api/policies/bearerAuth.js start line: 15 end line: 19 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 238 unit: module.exports = function() file: api/services/S3.js start line: 23 end line: 43 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 239 unit: function logError() file: api/services/S3.js start line: 86 end line: 88 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 240 unit: function error() file: api/services/SQS.js start line: 76 end line: 78 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 241 unit: module.exports.encodeB64 = function() file: assets/app/helpers/encoding.js start line: 1 end line: 3 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 242 unit: success: function() file: assets/app/models/Github.js start line: 155 end line: 157 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 243 unit: error: function() file: assets/app/models/Github.js start line: 442 end line: 444 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 244 unit: initialize: function() file: assets/app/models/User.js start line: 13 end line: 15 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 245 unit: initialize: function initializeUserView() file: assets/app/views/authenticate.js start line: 15 end line: 17 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 246 unit: show: function() file: assets/app/views/main.js start line: 31 end line: 33 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 247 unit: initialize: function initializeSiteView() file: assets/app/views/site/add.js start line: 26 end line: 28 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 248 unit: onSuccess: function onSuccess() file: assets/app/views/site/add.js start line: 83 end line: 85 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 249 unit: success: function() file: assets/app/views/site/edit.js start line: 33 end line: 35 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 250 unit: onDeleteSuccess: function onDeleteSuccess() file: assets/app/views/site/edit.js start line: 48 end line: 50 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 251 unit: onDeleteError: function onDeleteError() file: assets/app/views/site/edit.js start line: 51 end line: 53 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 252 unit: initialize: function initializeSiteView() file: assets/app/views/site/list-item.js start line: 14 end line: 16 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 253 unit: strategy: require() file: config/passport.js start line: 19 end line: 36 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 254 unit: exports.down = function() file: migrations/20151015171458-merge-sites.js start line: 56 end line: 59 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 255 unit: module.exports = function() file: tasks/register/default.js start line: 1 end line: 3 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 256 unit: addExpect100Continue: function addExpect100Continue() file: api/services/S3.js start line: 20 end line: 20 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 257 unit: success: function() file: assets/app/views/main.js start line: 23 end line: 23 size: 1 LOC McCabe index: 1 number of parameters: 0