Passed
Pull Request — master (#66)
by Michael
02:50
created

script/plugins/Menu/MenuItems/PageMacroDropdownDispatcher.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 1
Bugs 0 Features 0
Metric Value
cc 0
eloc 8
nc 1
dl 0
loc 13
rs 10
c 1
b 0
f 0
wmc 2
mnd 0
bc 1
fnc 1
bpm 1
cpm 2
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A PageMacroDropdownDispatcher.js ➔ getMenuItem 0 6 1
1
import AbstractDropdownDispatcher from './AbstractDropdownDispatcher';
2
import { svgIcon } from '../MDI';
3
4
class PageMacroDropdownDispatcher extends AbstractDropdownDispatcher {
5
    getMenuItem(schema) {
6
        return super.getMenuItem(schema, {
7
            icon: svgIcon('settings-outline'),
8
            label: LANG.plugins.prosemirror['label:settings'],
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
13
export default PageMacroDropdownDispatcher;
14