Passed
Push — master ( 8b64fb...938976 )
by Zhenyu
01:13
created

src/index.js   A

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 13
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
wmc 2
eloc 6
c 0
b 0
f 0
nc 1
mnd 1
bc 2
fnc 1
dl 0
loc 13
rs 10
bpm 2
cpm 2
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A index.js ➔ ??? 0 6 2
1
import { validate, join } from 'utils';
2
import { FOO, BAR } from 'constants';
3
4
/**
5
 * An example function just to show the build and ci pipeline works.
6
 * @returns {string} Hello world.
7
 */
8
export default () => {
9
  if (validate({ foo: FOO, bar: BAR })) {
10
    return join(FOO, BAR);
11
  }
12
  throw Error('Something interesting has happened ;-)');
13
};
14