id: 1 unit: constructor() file: src/VisualMain.ts start line: 54 end line: 188 size: 111 LOC McCabe index: 17 number of parameters: 1 id: 2 unit: public update() file: src/VisualMain.ts start line: 190 end line: 282 size: 79 LOC McCabe index: 19 number of parameters: 1 id: 3 unit: function convertToRowObjs() file: src/dataConversion.ts start line: 84 end line: 176 size: 64 LOC McCabe index: 23 number of parameters: 3 id: 4 unit: private updateCards() file: src/VisualMain.ts start line: 365 end line: 435 size: 53 LOC McCabe index: 2 number of parameters: 1 id: 5 unit: _getIndexOfFirstCardInViewPort() file: lib/@uncharted/cards/src/components/inlineCardsView/inlineCardsView.js start line: 65 end line: 110 size: 45 LOC McCabe index: 9 number of parameters: 1 id: 6 unit: render() file: lib/@uncharted/cards/src/components/card/card.js start line: 54 end line: 96 size: 38 LOC McCabe index: 8 number of parameters: 0 id: 7 unit: renderCardsInViewPort() file: lib/@uncharted/cards/src/components/inlineCardsView/inlineCardsView.js start line: 112 end line: 148 size: 33 LOC McCabe index: 11 number of parameters: 0 id: 8 unit: private updateVisualStyleConfigs() file: src/VisualMain.ts start line: 295 end line: 331 size: 32 LOC McCabe index: 8 number of parameters: 0 id: 9 unit: export function sanitizeHTML() file: src/utils.ts start line: 65 end line: 124 size: 31 LOC McCabe index: 9 number of parameters: 2 id: 10 unit: render() file: lib/@uncharted/cards/src/components/readerContent/readerContent.js start line: 30 end line: 59 size: 29 LOC McCabe index: 3 number of parameters: 0 id: 11 unit: off() file: lib/@uncharted/cards/src/util/IBindable.js start line: 74 end line: 102 size: 29 LOC McCabe index: 11 number of parameters: 3 id: 12 unit: render() file: lib/@uncharted/cards/src/components/headerImage/headerImage.js start line: 31 end line: 57 size: 27 LOC McCabe index: 7 number of parameters: 0 id: 13 unit: _registerDomEvents() file: lib/@uncharted/cards/src/components/card/card.js start line: 113 end line: 138 size: 24 LOC McCabe index: 8 number of parameters: 0 id: 14 unit: scaleImages() file: lib/@uncharted/cards/src/components/headerImage/headerImage.js start line: 63 end line: 86 size: 24 LOC McCabe index: 4 number of parameters: 2 id: 15 unit: _expandAndCenterCard() file: lib/@uncharted/cards/src/components/inlineCardsView/inlineCardsView.js start line: 150 end line: 174 size: 23 LOC McCabe index: 4 number of parameters: 2 id: 16 unit: function toHSL() file: src/utils.ts start line: 134 end line: 158 size: 22 LOC McCabe index: 7 number of parameters: 1 id: 17 unit: export function grayShadeFromString() file: lib/@uncharted/cards/src/util/images.js start line: 13 end line: 38 size: 21 LOC McCabe index: 4 number of parameters: 3 id: 18 unit: _registerDOMEvents() file: lib/@uncharted/cards/src/components/verticalReader/verticalReader.js start line: 31 end line: 50 size: 20 LOC McCabe index: 9 number of parameters: 0 id: 19 unit: _fadeOutOverflowingCardMetadataTexts() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 47 end line: 65 size: 19 LOC McCabe index: 8 number of parameters: 1 id: 20 unit: on() file: lib/@uncharted/cards/src/util/IBindable.js start line: 46 end line: 64 size: 19 LOC McCabe index: 6 number of parameters: 2 id: 21 unit: emit() file: lib/@uncharted/cards/src/util/IBindable.js start line: 111 end line: 130 size: 18 LOC McCabe index: 7 number of parameters: 2 id: 22 unit: function convertToDocuments() file: src/dataConversion.ts start line: 32 end line: 51 size: 18 LOC McCabe index: 4 number of parameters: 3 id: 23 unit: function parseColumn() file: src/dataConversion.ts start line: 98 end line: 115 size: 18 LOC McCabe index: 5 number of parameters: 3 id: 24 unit: function countDocuments() file: src/dataConversion.ts start line: 191 end line: 209 size: 18 LOC McCabe index: 7 number of parameters: 1 id: 25 unit: _registerDomEvents() file: lib/@uncharted/cards/src/components/readerContent/readerContent.js start line: 65 end line: 82 size: 17 LOC McCabe index: 3 number of parameters: 0 id: 26 unit: private hideRedundantInfo() file: src/VisualMain.ts start line: 333 end line: 350 size: 17 LOC McCabe index: 2 number of parameters: 0 id: 27 unit: tooltip: $() file: lib/@uncharted/cards/src/components/card/card.js start line: 79 end line: 99 size: 16 LOC McCabe index: 4 number of parameters: 1 id: 28 unit: _registerDomEvents() file: lib/@uncharted/cards/src/components/inlineCardsView/inlineCardsView.js start line: 40 end line: 56 size: 16 LOC McCabe index: 3 number of parameters: 0 id: 29 unit: _createNewReaderHolder() file: lib/@uncharted/cards/src/components/verticalReader/verticalReader.js start line: 77 end line: 95 size: 16 LOC McCabe index: 4 number of parameters: 0 id: 30 unit: function assignRole() file: src/dataConversion.ts start line: 53 end line: 68 size: 15 LOC McCabe index: 5 number of parameters: 5 id: 31 unit: reset() file: lib/@uncharted/cards/src/components/headerImage/headerImage.js start line: 14 end line: 29 size: 14 LOC McCabe index: 5 number of parameters: 1 id: 32 unit: export function delayOnHorizontalToVerticalScrollingTransition() file: lib/@uncharted/cards/src/util/scroll.js start line: 18 end line: 32 size: 14 LOC McCabe index: 2 number of parameters: 3 id: 33 unit: reset() file: lib/@uncharted/cards/src/components/card/card.js start line: 20 end line: 35 size: 13 LOC McCabe index: 4 number of parameters: 1 id: 34 unit: _registerDomEvents() file: lib/@uncharted/cards/src/components/wrappedCardsView/wrappedCardsView.js start line: 31 end line: 43 size: 13 LOC McCabe index: 3 number of parameters: 0 id: 35 unit: public enumerateObjectInstances() file: src/VisualMain.ts start line: 466 end line: 478 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 36 unit: function assignValue() file: src/dataConversion.ts start line: 70 end line: 82 size: 13 LOC McCabe index: 3 number of parameters: 3 id: 37 unit: reset() file: lib/@uncharted/cards/src/components/readerContent/readerContent.js start line: 17 end line: 28 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 38 unit: private loadSelectionFromPowerBI() file: src/VisualMain.ts start line: 352 end line: 363 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 39 unit: toggleInlineDisplayMode() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 140 end line: 150 size: 11 LOC McCabe index: 8 number of parameters: 1 id: 40 unit: private changeWrapMode() file: src/VisualMain.ts start line: 447 end line: 457 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 41 unit: _initMoreCards() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 36 end line: 45 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 42 unit: reset() file: lib/@uncharted/cards/src/components/inlineCardsView/inlineCardsView.js start line: 16 end line: 25 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 43 unit: render() file: lib/@uncharted/cards/src/components/wrappedCardsView/wrappedCardsView.js start line: 45 end line: 54 size: 10 LOC McCabe index: 1 number of parameters: 0 id: 44 unit: forward() file: lib/@uncharted/cards/src/util/IBindable.js start line: 140 end line: 149 size: 10 LOC McCabe index: 3 number of parameters: 2 id: 45 unit: unforward() file: lib/@uncharted/cards/src/util/IBindable.js start line: 158 end line: 167 size: 10 LOC McCabe index: 3 number of parameters: 2 id: 46 unit: private updateFlipButton() file: src/VisualMain.ts start line: 284 end line: 293 size: 10 LOC McCabe index: 1 number of parameters: 0 id: 47 unit: export function hexToRgba() file: src/utils.ts start line: 166 end line: 175 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 48 unit: export function getKeyFromSelectionId() file: src/utils.ts start line: 193 end line: 202 size: 10 LOC McCabe index: 4 number of parameters: 1 id: 49 unit: render() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 76 end line: 84 size: 9 LOC McCabe index: 2 number of parameters: 0 id: 50 unit: _navigate() file: lib/@uncharted/cards/src/components/verticalReader/verticalReader.js start line: 57 end line: 66 size: 9 LOC McCabe index: 5 number of parameters: 1 id: 51 unit: scrollToVerticalReader() file: lib/@uncharted/cards/src/components/wrappedCardsView/wrappedCardsView.js start line: 74 end line: 82 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 52 unit: function linkify() file: lib/@uncharted/cards/src/handlebarHelper/linkify.js start line: 28 end line: 36 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 53 unit: destroy() file: lib/@uncharted/cards/src/util/IBindable.js start line: 28 end line: 37 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 54 unit: private isInlineSize() file: src/VisualMain.ts start line: 437 end line: 445 size: 9 LOC McCabe index: 4 number of parameters: 1 id: 55 unit: private applySelection() file: src/VisualMain.ts start line: 508 end line: 516 size: 9 LOC McCabe index: 4 number of parameters: 1 id: 56 unit: export function removeScriptAttributes() file: src/utils.ts start line: 47 end line: 57 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 57 unit: reset() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 67 end line: 74 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 58 unit: clearCards() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 94 end line: 101 size: 8 LOC McCabe index: 2 number of parameters: 0 id: 59 unit: render() file: lib/@uncharted/cards/src/components/inlineCardsView/inlineCardsView.js start line: 27 end line: 34 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 60 unit: _placeMarker() file: lib/@uncharted/cards/src/components/verticalReader/verticalReader.js start line: 68 end line: 75 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 61 unit: renderMoreCards() file: lib/@uncharted/cards/src/components/wrappedCardsView/wrappedCardsView.js start line: 65 end line: 72 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 62 unit: export default function() file: lib/@uncharted/cards/src/handlebarHelper/cardImages.js start line: 5 end line: 12 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 63 unit: export function mapVerticalToHorizontalScroll() file: lib/@uncharted/cards/src/util/scroll.js start line: 9 end line: 16 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 64 unit: function flattenMetaData() file: src/dataConversion.ts start line: 15 end line: 22 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 65 unit: constructor() file: lib/@uncharted/cards/src/components/card/card.js start line: 12 end line: 18 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 66 unit: _renderReaderContent() file: lib/@uncharted/cards/src/components/card/card.js start line: 98 end line: 104 size: 7 LOC McCabe index: 4 number of parameters: 0 id: 67 unit: expand() file: lib/@uncharted/cards/src/components/card/card.js start line: 140 end line: 146 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 68 unit: shrink() file: lib/@uncharted/cards/src/components/card/card.js start line: 148 end line: 154 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 69 unit: flip() file: lib/@uncharted/cards/src/components/card/card.js start line: 156 end line: 162 size: 7 LOC McCabe index: 3 number of parameters: 1 id: 70 unit: _initInlineCardsView() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 20 end line: 26 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 71 unit: _initWrappedCardsView() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 28 end line: 34 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 72 unit: resize() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 86 end line: 92 size: 7 LOC McCabe index: 3 number of parameters: 0 id: 73 unit: loadData() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 103 end line: 110 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 74 unit: loadMoreData() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 112 end line: 118 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 75 unit: closeReader() file: lib/@uncharted/cards/src/components/inlineCardsView/inlineCardsView.js start line: 186 end line: 192 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 76 unit: export default function() file: lib/@uncharted/cards/src/handlebarHelper/isImageDataUrl.js start line: 5 end line: 11 size: 7 LOC McCabe index: 3 number of parameters: 2 id: 77 unit: function createSelectionId() file: src/dataConversion.ts start line: 24 end line: 30 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 78 unit: function dedupeCategories() file: src/dataConversion.ts start line: 178 end line: 184 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 79 unit: function define() file: src/sandboxPolyfill.js start line: 21 end line: 27 size: 7 LOC McCabe index: 2 number of parameters: 3 id: 80 unit: export function findColumn() file: src/utils.ts start line: 19 end line: 25 size: 7 LOC McCabe index: 5 number of parameters: 3 id: 81 unit: let filter: any = function() file: src/utils.ts start line: 87 end line: 94 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 82 unit: _moveReaderContent() file: lib/@uncharted/cards/src/components/card/card.js start line: 106 end line: 111 size: 6 LOC McCabe index: 6 number of parameters: 0 id: 83 unit: constructor() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 13 end line: 18 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 84 unit: updateCardInstances() file: lib/@uncharted/cards/src/components/inlineCardsView/inlineCardsView.js start line: 58 end line: 63 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 85 unit: open() file: lib/@uncharted/cards/src/components/verticalReader/verticalReader.js start line: 109 end line: 114 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 86 unit: constructor() file: lib/@uncharted/cards/src/components/wrappedCardsView/wrappedCardsView.js start line: 11 end line: 16 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 87 unit: reset() file: lib/@uncharted/cards/src/components/wrappedCardsView/wrappedCardsView.js start line: 18 end line: 23 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 88 unit: safeBind() file: lib/@uncharted/cards/src/util/IBindable.js start line: 178 end line: 183 size: 6 LOC McCabe index: 1 number of parameters: 3 id: 89 unit: openReader() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 128 end line: 132 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 90 unit: closeReader() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 134 end line: 138 size: 5 LOC McCabe index: 2 number of parameters: 0 id: 91 unit: updateReaderContent() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 152 end line: 156 size: 5 LOC McCabe index: 2 number of parameters: 2 id: 92 unit: constructor() file: lib/@uncharted/cards/src/components/inlineCardsView/inlineCardsView.js start line: 10 end line: 14 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 93 unit: openReader() file: lib/@uncharted/cards/src/components/inlineCardsView/inlineCardsView.js start line: 180 end line: 184 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 94 unit: constructor() file: lib/@uncharted/cards/src/components/readerContent/readerContent.js start line: 11 end line: 15 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 95 unit: reset() file: lib/@uncharted/cards/src/components/verticalReader/verticalReader.js start line: 15 end line: 19 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 96 unit: render() file: lib/@uncharted/cards/src/components/verticalReader/verticalReader.js start line: 25 end line: 29 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 97 unit: _initVerticalReader() file: lib/@uncharted/cards/src/components/wrappedCardsView/wrappedCardsView.js start line: 25 end line: 29 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 98 unit: function getHostName() file: lib/@uncharted/cards/src/handlebarHelper/linkify.js start line: 13 end line: 17 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 99 unit: constructor() file: lib/@uncharted/cards/src/util/IBindable.js start line: 17 end line: 21 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 100 unit: export function convertToHSL() file: src/utils.ts start line: 183 end line: 187 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 101 unit: _getIconUrl() file: lib/@uncharted/cards/src/components/card/card.js start line: 49 end line: 52 size: 4 LOC McCabe index: 4 number of parameters: 0 id: 102 unit: updateReaderContent() file: lib/@uncharted/cards/src/components/card/card.js start line: 164 end line: 167 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 103 unit: constructor() file: lib/@uncharted/cards/src/components/headerImage/headerImage.js start line: 9 end line: 12 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 104 unit: _getIconUrl() file: lib/@uncharted/cards/src/components/readerContent/readerContent.js start line: 84 end line: 87 size: 4 LOC McCabe index: 4 number of parameters: 0 id: 105 unit: constructor() file: lib/@uncharted/cards/src/components/verticalReader/verticalReader.js start line: 10 end line: 13 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 106 unit: clearCards() file: lib/@uncharted/cards/src/components/wrappedCardsView/wrappedCardsView.js start line: 56 end line: 59 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 107 unit: openReader() file: lib/@uncharted/cards/src/components/wrappedCardsView/wrappedCardsView.js start line: 84 end line: 87 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 108 unit: function isUrl() file: lib/@uncharted/cards/src/handlebarHelper/linkify.js start line: 8 end line: 11 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 109 unit: function isMailTo() file: lib/@uncharted/cards/src/handlebarHelper/linkify.js start line: 23 end line: 26 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 110 unit: export default function() file: lib/@uncharted/cards/src/handlebarHelper/linkify.js start line: 38 end line: 41 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 111 unit: function convertToDocumentData() file: src/dataConversion.ts start line: 186 end line: 189 size: 4 LOC McCabe index: 1 number of parameters: 4 id: 112 unit: get expandedWidth() file: lib/@uncharted/cards/src/components/card/card.js start line: 37 end line: 39 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 113 unit: get initialWidth() file: lib/@uncharted/cards/src/components/card/card.js start line: 41 end line: 43 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 114 unit: get height() file: lib/@uncharted/cards/src/components/card/card.js start line: 45 end line: 47 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 115 unit: scaleHeaderImages() file: lib/@uncharted/cards/src/components/card/card.js start line: 169 end line: 171 size: 3 LOC McCabe index: 3 number of parameters: 0 id: 116 unit: findCardById() file: lib/@uncharted/cards/src/components/cards/cards.js start line: 120 end line: 122 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 117 unit: hasImages() file: lib/@uncharted/cards/src/components/headerImage/headerImage.js start line: 59 end line: 61 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 118 unit: resize() file: lib/@uncharted/cards/src/components/inlineCardsView/inlineCardsView.js start line: 36 end line: 38 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 119 unit: updateData() file: lib/@uncharted/cards/src/components/readerContent/readerContent.js start line: 61 end line: 63 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 120 unit: get $readerHolder() file: lib/@uncharted/cards/src/components/verticalReader/verticalReader.js start line: 21 end line: 23 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 121 unit: resize() file: lib/@uncharted/cards/src/components/verticalReader/verticalReader.js start line: 97 end line: 99 size: 3 LOC McCabe index: 3 number of parameters: 0 id: 122 unit: _expandReaderHolder() file: lib/@uncharted/cards/src/components/verticalReader/verticalReader.js start line: 101 end line: 103 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 123 unit: updateCardInstances() file: lib/@uncharted/cards/src/components/verticalReader/verticalReader.js start line: 105 end line: 107 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 124 unit: close() file: lib/@uncharted/cards/src/components/verticalReader/verticalReader.js start line: 116 end line: 118 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 125 unit: resize() file: lib/@uncharted/cards/src/components/wrappedCardsView/wrappedCardsView.js start line: 61 end line: 63 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 126 unit: closeReader() file: lib/@uncharted/cards/src/components/wrappedCardsView/wrappedCardsView.js start line: 89 end line: 91 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 127 unit: function getLink() file: lib/@uncharted/cards/src/handlebarHelper/linkify.js start line: 19 end line: 21 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 128 unit: _forwardEvent() file: lib/@uncharted/cards/src/util/IBindable.js start line: 193 end line: 195 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 129 unit: export function unMapVerticalToHorizontalScroll() file: lib/@uncharted/cards/src/util/scroll.js start line: 34 end line: 36 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 130 unit: public destroy() file: src/VisualMain.ts start line: 485 end line: 487 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 131 unit: private showLoader() file: src/VisualMain.ts start line: 492 end line: 494 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 132 unit: private hideLoader() file: src/VisualMain.ts start line: 499 end line: 501 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 133 unit: export function hasColumns() file: src/utils.ts start line: 35 end line: 37 size: 3 LOC McCabe index: 2 number of parameters: 2 id: 134 unit: export function hasRole() file: src/utils.ts start line: 42 end line: 44 size: 3 LOC McCabe index: 2 number of parameters: 2