srcBU/scripts/helper.d.ts   A
last analyzed

Complexity

Total Complexity 12
Complexity/F 1

Size

Lines of Code 17
Function Count 12

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 12
eloc 12
mnd 0
bc 0
fnc 12
dl 0
loc 17
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0

10 Functions

Rating   Name   Duplication   Size   Complexity  
A helper.d.ts ➔ formatDivision 0 1 1
A helper.d.ts ➔ translateGameResult 0 1 1
A helper.d.ts ➔ mapMatchStatus 0 1 1
A helper.d.ts ➔ mapDivision 0 1 1
A helper.d.ts ➔ mapPositionCode 0 1 1
A helper.d.ts ➔ mapPsdStatusShort 0 1 1
A helper.d.ts ➔ mapPsdStatus 0 6 1
A helper.d.ts ➔ outputDivision 0 1 1
A helper.d.ts ➔ truncate 0 1 1
A helper.d.ts ➔ replaceFirstCharIfNumber 0 1 1
1
export function getPositions(): Map<string, string>
2
/**
3
 * Map a statusCode to a descriptive label.
4
 *
5
 * @param {string} statusCode
6
 */
7
export function mapPsdStatus(statusCode: string): string
8
export function mapPsdStatusShort(statusCode: string): string
9
export function translateGameResult(result: string): string
10
export function mapMatchStatus(statusCode: string): string
11
export function replaceFirstCharIfNumber(division: string): string
12
export function outputDivision(divisionArray: string[], level?: string): string
13
export function mapDivision(division: string): RegExpExecArray
14
export function formatDivision(division: string, region: string): string
15
export function truncate(size: number, useWordBoundary?: boolean): string
16
export function mapPositionCode(positionCode: string): string
17