Passed
Pull Request — master (#57)
by Michael
03:00
created

script/initializePublicAPI.js   A

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 8
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A initializePublicAPI.js ➔ initializePublicAPI 0 6 2
1
import KeyValueForm from './nodeviews/KeyValueForm';
2
3
export default function initializePublicAPI() {
4
    if (!window.Prosemirror.classes) {
5
        window.Prosemirror.classes = {};
6
    }
7
    window.Prosemirror.classes.KeyValueForm = KeyValueForm;
8
}
9