Passed
Push — master ( e1efef...d34f83 )
by
unknown
15:24
created

script/plugins/Menu/MenuItems/MarkDropdownDispatcher.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 11
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A MarkDropdownDispatcher.getMenuItem 0 6 1
1
import AbstractDropdownDispatcher from './AbstractDropdownDispatcher';
2
import { svgIcon } from '../MDI';
3
4
export default class MarkDropdownDispatcher extends AbstractDropdownDispatcher {
5
    getMenuItem(schema) {
6
        return super.getMenuItem(schema, {
7
            icon: svgIcon('format-text'),
8
            label: LANG.plugins.prosemirror['label:marks'],
0 ignored issues
show
Bug introduced by
The variable LANG seems to be never declared. If this is a global, consider adding a /** global: LANG */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
9
        });
10
    }
11
}
12