Passed
Push — develop ( 9e3bd7...6405a0 )
by Endre
03:46
created

src/Application/ApplicationAction.ts   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 14
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 14
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A ApplicationAction.openGithubWindow 0 3 1
1
import {IAdapter} from './View/Application';
2
3
export default class ApplicationAction {
4
  get adapter(): IAdapter {
5 1
    return {
6
      onGithubClick: this.openGithubWindow.bind(this)
7
    }
8
  }
9
10
  protected openGithubWindow(): void {
11 1
    window.open('https://github.com/enbock/Time-Tracker/', '_blank');
12
  }
13
}
14