id: 1 unit: async handleStaleIssue() file: functions/src/cron.ts start line: 167 end line: 316 size: 114 LOC McCabe index: 22 number of parameters: 4 id: 2 unit: async onCommentCreated() file: functions/src/issues.ts start line: 343 end line: 463 size: 96 LOC McCabe index: 16 number of parameters: 3 id: 3 unit: async checkMatchesTemplate() file: functions/src/issues.ts start line: 624 end line: 719 size: 82 LOC McCabe index: 12 number of parameters: 3 id: 4 unit: export async function MakeRepoReport() file: functions/src/report.ts start line: 333 end line: 435 size: 75 LOC McCabe index: 7 number of parameters: 2 id: 5 unit: async function deployConfig() file: functions/src/scripts/deploy-config.ts start line: 6 end line: 89 size: 61 LOC McCabe index: 7 number of parameters: 2 id: 6 unit: async checkNewIssueTemplate() file: functions/src/issues.ts start line: 552 end line: 612 size: 52 LOC McCabe index: 8 number of parameters: 2 id: 7 unit: export async function MakeRepoTimeSeries() file: functions/src/report.ts start line: 437 end line: 492 size: 50 LOC McCabe index: 14 number of parameters: 5 id: 8 unit: async onNewIssue() file: functions/src/issues.ts start line: 191 end line: 261 size: 49 LOC McCabe index: 9 number of parameters: 2 id: 9 unit: export async function GetWeeklyReport() file: functions/src/report.ts start line: 51 end line: 114 size: 46 LOC McCabe index: 2 number of parameters: 1 id: 10 unit: export async function GetWeeklyEmail() file: functions/src/report.ts start line: 671 end line: 724 size: 41 LOC McCabe index: 4 number of parameters: 1 id: 11 unit: async handleClosedIssue() file: functions/src/cron.ts start line: 103 end line: 144 size: 31 LOC McCabe index: 5 number of parameters: 4 id: 12 unit: async handleIssueEvent() file: functions/src/issues.ts start line: 123 end line: 155 size: 28 LOC McCabe index: 9 number of parameters: 5 id: 13 unit: async handleClosedIssues() file: functions/src/cron.ts start line: 70 end line: 101 size: 28 LOC McCabe index: 6 number of parameters: 3 id: 14 unit: async function addSeriesToChart() file: public/charts.js start line: 91 end line: 129 size: 27 LOC McCabe index: 1 number of parameters: 2 id: 15 unit: async handlePullRequestEvent() file: functions/src/pullrequests.ts start line: 63 end line: 99 size: 27 LOC McCabe index: 11 number of parameters: 5 id: 16 unit: async function paginate() file: functions/src/github.ts start line: 246 end line: 279 size: 24 LOC McCabe index: 2 number of parameters: 2 id: 17 unit: function GetTotalSamScore() file: functions/src/report.ts start line: 134 end line: 160 size: 23 LOC McCabe index: 5 number of parameters: 1 id: 18 unit: async processIssues() file: functions/src/cron.ts start line: 42 end line: 68 size: 22 LOC McCabe index: 2 number of parameters: 3 id: 19 unit: async handleIssueCommentEvent() file: functions/src/issues.ts start line: 160 end line: 184 size: 21 LOC McCabe index: 4 number of parameters: 6 id: 20 unit: function CountIssuesWithFilter() file: functions/src/report.ts start line: 175 end line: 200 size: 21 LOC McCabe index: 4 number of parameters: 2 id: 21 unit: export function deepDecodeObject() file: functions/src/shared/encoding.ts start line: 83 end line: 106 size: 20 LOC McCabe index: 6 number of parameters: 1 id: 22 unit: function flattenObject() file: functions/src/shared/encoding.ts start line: 111 end line: 133 size: 20 LOC McCabe index: 6 number of parameters: 1 id: 23 unit: export async function insertIssues() file: functions/src/bigquery.ts start line: 110 end line: 131 size: 20 LOC McCabe index: 2 number of parameters: 4 id: 24 unit: function getIssuesViewSql() file: functions/src/bigquery.ts start line: 145 end line: 164 size: 20 LOC McCabe index: 1 number of parameters: 1 id: 25 unit: constructor() file: functions/src/types.ts start line: 722 end line: 740 size: 19 LOC McCabe index: 2 number of parameters: 3 id: 26 unit: function GetSortedSam() file: functions/src/report.ts start line: 222 end line: 241 size: 19 LOC McCabe index: 2 number of parameters: 3 id: 27 unit: async function FetchClosestSnapshot() file: functions/src/report.ts start line: 309 end line: 331 size: 19 LOC McCabe index: 4 number of parameters: 3 id: 28 unit: window.initializeApp = function() file: public/audit.js start line: 53 end line: 72 size: 18 LOC McCabe index: 3 number of parameters: 0 id: 29 unit: export function flattenConfig() file: functions/src/shared/encoding.ts start line: 58 end line: 78 size: 18 LOC McCabe index: 4 number of parameters: 2 id: 30 unit: export function getFunctionsConfig() file: functions/src/config.ts start line: 34 end line: 56 size: 18 LOC McCabe index: 4 number of parameters: 1 id: 31 unit: async handleStaleIssues() file: functions/src/cron.ts start line: 146 end line: 165 size: 18 LOC McCabe index: 2 number of parameters: 3 id: 32 unit: export async function GetOrganizationSnapshot() file: functions/src/snapshot.ts start line: 87 end line: 110 size: 17 LOC McCabe index: 3 number of parameters: 2 id: 33 unit: export async function userIsCollaborator() file: functions/src/snapshot.ts start line: 63 end line: 80 size: 16 LOC McCabe index: 2 number of parameters: 3 id: 34 unit: async onPullRequestLabeled() file: functions/src/pullrequests.ts start line: 125 end line: 145 size: 16 LOC McCabe index: 3 number of parameters: 3 id: 35 unit: export function endTimer() file: functions/src/util.ts start line: 36 end line: 53 size: 15 LOC McCabe index: 2 number of parameters: 1 id: 36 unit: function drawChart() file: public/charts.js start line: 75 end line: 89 size: 14 LOC McCabe index: 1 number of parameters: 1 id: 37 unit: function calculateStats() file: functions/src/stats.ts start line: 28 end line: 43 size: 14 LOC McCabe index: 2 number of parameters: 1 id: 38 unit: function GetTopStars() file: functions/src/report.ts start line: 263 end line: 277 size: 14 LOC McCabe index: 2 number of parameters: 2 id: 39 unit: function GetTopIssues() file: functions/src/report.ts start line: 279 end line: 293 size: 14 LOC McCabe index: 2 number of parameters: 2 id: 40 unit: function scrubObject() file: functions/src/snapshot.ts start line: 31 end line: 45 size: 13 LOC McCabe index: 1 number of parameters: 2 id: 41 unit: async onNewPullRequest() file: functions/src/pullrequests.ts start line: 104 end line: 123 size: 13 LOC McCabe index: 2 number of parameters: 2 id: 42 unit: function selectAxis() file: public/charts.js start line: 59 end line: 73 size: 12 LOC McCabe index: 5 number of parameters: 1 id: 43 unit: function lockFields() file: public/charts.js start line: 168 end line: 180 size: 12 LOC McCabe index: 2 number of parameters: 0 id: 44 unit: function unlockFields() file: public/charts.js start line: 182 end line: 194 size: 12 LOC McCabe index: 2 number of parameters: 0 id: 45 unit: export async function FetchRepoSnapshot() file: functions/src/snapshot.ts start line: 197 end line: 208 size: 12 LOC McCabe index: 1 number of parameters: 3 id: 46 unit: await database() file: functions/src/snapshot.ts start line: 326 end line: 339 size: 12 LOC McCabe index: 3 number of parameters: 0 id: 47 unit: getAllRepos() file: functions/src/config.ts start line: 76 end line: 89 size: 12 LOC McCabe index: 3 number of parameters: 0 id: 48 unit: EntryPresenter.prototype.detailsEntries = function() file: public/audit.js start line: 39 end line: 51 size: 11 LOC McCabe index: 2 number of parameters: 0 id: 49 unit: export function encodeKey() file: functions/src/shared/encoding.ts start line: 24 end line: 42 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 50 unit: getFileContent() file: functions/src/github.ts start line: 105 end line: 116 size: 11 LOC McCabe index: 1 number of parameters: 3 id: 51 unit: export async function createIssuesTable() file: functions/src/bigquery.ts start line: 97 end line: 108 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 52 unit: export async function insertEvent() file: functions/src/bigquery.ts start line: 133 end line: 143 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 53 unit: export function ComputeSAMScore() file: functions/src/report.ts start line: 295 end line: 307 size: 11 LOC McCabe index: 4 number of parameters: 1 id: 54 unit: function toChangedIssue() file: functions/src/report.ts start line: 726 end line: 736 size: 11 LOC McCabe index: 1 number of parameters: 3 id: 55 unit: async function loadChartFromSeriesState() file: public/charts.js start line: 222 end line: 231 size: 10 LOC McCabe index: 3 number of parameters: 0 id: 56 unit: await database() file: functions/src/snapshot.ts start line: 335 end line: 348 size: 10 LOC McCabe index: 2 number of parameters: 0 id: 57 unit: export function debug() file: functions/src/log.ts start line: 36 end line: 46 size: 10 LOC McCabe index: 3 number of parameters: 2 id: 58 unit: export function warn() file: functions/src/log.ts start line: 48 end line: 58 size: 10 LOC McCabe index: 3 number of parameters: 2 id: 59 unit: export function error() file: functions/src/log.ts start line: 60 end line: 70 size: 10 LOC McCabe index: 3 number of parameters: 2 id: 60 unit: function CountReposWithFilter() file: functions/src/report.ts start line: 162 end line: 173 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 61 unit: const onDocReady = function() file: public/charts.js start line: 233 end line: 241 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 62 unit: async function safeExecuteActions() file: functions/src/index.ts start line: 332 end line: 340 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 63 unit: areStringsEqual() file: functions/src/template.ts start line: 179 end line: 188 size: 9 LOC McCabe index: 4 number of parameters: 2 id: 64 unit: getCollaboratorsForRepo() file: functions/src/github.ts start line: 196 end line: 204 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 65 unit: function GetLowestSam() file: functions/src/report.ts start line: 243 end line: 251 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 66 unit: function GetHighestSam() file: functions/src/report.ts start line: 253 end line: 261 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 67 unit: function getQueryOptsFromForm() file: public/charts.js start line: 131 end line: 139 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 68 unit: function getQueryUrl() file: public/charts.js start line: 141 end line: 149 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 69 unit: async function withLoading() file: public/charts.js start line: 157 end line: 166 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 70 unit: window.resetChart = function() file: public/charts.js start line: 243 end line: 251 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 71 unit: window.initializeData = function() file: public/audit.js start line: 74 end line: 81 size: 8 LOC McCabe index: 3 number of parameters: 0 id: 72 unit: function GetTotalOpenIssues() file: functions/src/report.ts start line: 116 end line: 124 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 73 unit: function GetTotalOpenIssuesWithNoComments() file: functions/src/report.ts start line: 202 end line: 210 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 74 unit: function GetTotalOpenPullRequests() file: functions/src/report.ts start line: 212 end line: 220 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 75 unit: EntryPresenter.prototype.timeString = function() file: public/audit.js start line: 21 end line: 27 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 76 unit: async function executeAction() file: functions/src/index.ts start line: 342 end line: 348 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 77 unit: export function samScore() file: functions/src/util.ts start line: 55 end line: 62 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 78 unit: export function decodeKey() file: functions/src/shared/encoding.ts start line: 44 end line: 52 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 79 unit: function replaceAll() file: functions/src/shared/encoding.ts start line: 135 end line: 142 size: 7 LOC McCabe index: 2 number of parameters: 3 id: 80 unit: constructor() file: functions/src/github.ts start line: 32 end line: 41 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 81 unit: getCommentsForIssue() file: functions/src/github.ts start line: 133 end line: 139 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 82 unit: async getRepo() file: functions/src/github.ts start line: 153 end line: 160 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 83 unit: lockIssue() file: functions/src/github.ts start line: 209 end line: 215 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 84 unit: toString() file: functions/src/types.ts start line: 198 end line: 205 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 85 unit: constructor() file: functions/src/types.ts start line: 215 end line: 221 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 86 unit: export function logData() file: functions/src/log.ts start line: 75 end line: 84 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 87 unit: static getDefaultTemplateConfig() file: functions/src/config.ts start line: 299 end line: 305 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 88 unit: function randomColor() file: public/charts.js start line: 51 end line: 57 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 89 unit: window.clearChart = function() file: public/charts.js start line: 253 end line: 258 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 90 unit: var EntryPresenter = function() file: public/audit.js start line: 8 end line: 13 size: 6 LOC McCabe index: 1 number of parameters: 4 id: 91 unit: constructor() file: functions/src/template.ts start line: 27 end line: 32 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 92 unit: constructor() file: functions/src/template.ts start line: 45 end line: 50 size: 6 LOC McCabe index: 1 number of parameters: 3 id: 93 unit: function OrgSnapshotPath() file: functions/src/snapshot.ts start line: 47 end line: 53 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 94 unit: export function database() file: functions/src/database.ts start line: 5 end line: 11 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 95 unit: constructor() file: functions/src/types.ts start line: 46 end line: 52 size: 6 LOC McCabe index: 1 number of parameters: 4 id: 96 unit: constructor() file: functions/src/types.ts start line: 143 end line: 149 size: 6 LOC McCabe index: 2 number of parameters: 4 id: 97 unit: constructor() file: functions/src/types.ts start line: 153 end line: 159 size: 6 LOC McCabe index: 2 number of parameters: 4 id: 98 unit: constructor() file: functions/src/types.ts start line: 163 end line: 169 size: 6 LOC McCabe index: 2 number of parameters: 4 id: 99 unit: function GetTotalStars() file: functions/src/report.ts start line: 126 end line: 132 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 100 unit: async function fetchQueryData() file: public/charts.js start line: 151 end line: 155 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 101 unit: function setQueryStringParameter() file: public/charts.js start line: 216 end line: 220 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 102 unit: EntryPresenter.prototype.selfLink = function() file: public/audit.js start line: 15 end line: 19 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 103 unit: EntryPresenter.prototype.targetLink = function() file: public/audit.js start line: 29 end line: 33 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 104 unit: export async function delay() file: functions/src/util.ts start line: 10 end line: 14 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 105 unit: export function setDiff() file: functions/src/util.ts start line: 26 end line: 30 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 106 unit: constructor() file: functions/src/issues.ts start line: 109 end line: 118 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 107 unit: getOrg() file: functions/src/github.ts start line: 144 end line: 148 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 108 unit: getReposInOrg() file: functions/src/github.ts start line: 165 end line: 169 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 109 unit: function cleanRepoName() file: functions/src/snapshot.ts start line: 18 end line: 23 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 110 unit: function scrubArray() file: functions/src/snapshot.ts start line: 25 end line: 29 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 111 unit: export async function GetRepoSnapshot() file: functions/src/snapshot.ts start line: 118 end line: 122 size: 5 LOC McCabe index: 1 number of parameters: 3 id: 112 unit: export function sendPubSub() file: functions/src/pubsub.ts start line: 9 end line: 14 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 113 unit: details() file: functions/src/types.ts start line: 85 end line: 89 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 114 unit: details() file: functions/src/types.ts start line: 110 end line: 114 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 115 unit: details() file: functions/src/types.ts start line: 135 end line: 139 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 116 unit: constructor() file: functions/src/types.ts start line: 597 end line: 602 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 117 unit: getCloseComment() file: functions/src/cron.ts start line: 329 end line: 334 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 118 unit: export async function createEventsTable() file: functions/src/bigquery.ts start line: 86 end line: 90 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 119 unit: export async function GetWeeklyRepoEmail() file: functions/src/report.ts start line: 664 end line: 669 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 120 unit: function appendSeriesToState() file: public/charts.js start line: 196 end line: 199 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 121 unit: function resetSeriesState() file: public/charts.js start line: 201 end line: 204 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 122 unit: function setState() file: public/charts.js start line: 206 end line: 209 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 123 unit: function getQueryStringParameter() file: public/charts.js start line: 211 end line: 214 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 124 unit: function addSnapToEntries() file: public/audit.js start line: 83 end line: 86 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 125 unit: function loadRepoAudit() file: public/audit.js start line: 88 end line: 92 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 126 unit: function loadSingleEntry() file: public/audit.js start line: 94 end line: 98 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 127 unit: getIssueTemplate() file: functions/src/github.ts start line: 97 end line: 100 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 128 unit: constructor() file: functions/src/types.ts start line: 31 end line: 34 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 129 unit: toString() file: functions/src/types.ts start line: 58 end line: 61 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 130 unit: constructor() file: functions/src/types.ts start line: 228 end line: 231 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 131 unit: constructor() file: functions/src/cron.ts start line: 37 end line: 40 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 132 unit: constructor() file: functions/src/email.ts start line: 33 end line: 36 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 133 unit: constructor() file: functions/src/pullrequests.ts start line: 52 end line: 58 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 134 unit: hasIssueLink() file: functions/src/pullrequests.ts start line: 157 end line: 162 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 135 unit: export async function listEventsTables() file: functions/src/bigquery.ts start line: 81 end line: 84 size: 4 LOC McCabe index: 2 number of parameters: 0 id: 136 unit: export async function listIssuesTables() file: functions/src/bigquery.ts start line: 92 end line: 95 size: 4 LOC McCabe index: 2 number of parameters: 0 id: 137 unit: EntryPresenter.prototype.hasDetails = function() file: public/audit.js start line: 35 end line: 37 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 138 unit: export function DateSlug() file: functions/src/util.ts start line: 16 end line: 18 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 139 unit: function getTime() file: functions/src/util.ts start line: 22 end line: 24 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 140 unit: export function startTimer() file: functions/src/util.ts start line: 32 end line: 34 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 141 unit: export function createdDate() file: functions/src/util.ts start line: 64 end line: 66 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 142 unit: setConfig() file: functions/src/issues.ts start line: 763 end line: 765 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 143 unit: export function toEnvKey() file: functions/src/shared/encoding.ts start line: 20 end line: 22 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 144 unit: export function sanitizeKey() file: functions/src/shared/encoding.ts start line: 54 end line: 56 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 145 unit: function DateSnapshotPath() file: functions/src/snapshot.ts start line: 55 end line: 57 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 146 unit: function RepoSnapshotPath() file: functions/src/snapshot.ts start line: 59 end line: 61 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 147 unit: toString() file: functions/src/types.ts start line: 36 end line: 38 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 148 unit: export function setLogLevel() file: functions/src/log.ts start line: 32 end line: 34 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 149 unit: static getDefault() file: functions/src/config.ts start line: 65 end line: 67 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 150 unit: constructor() file: functions/src/config.ts start line: 69 end line: 71 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 151 unit: hasSkipTag() file: functions/src/pullrequests.ts start line: 150 end line: 152 size: 3 LOC McCabe index: 1 number of parameters: 2