assets/ckeditor/plugins/PartDBLabel/PartDBLabel.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 16
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

2 Functions

Rating   Name   Duplication   Size   Complexity  
A PartDBLabel.pluginName 0 3 1
A PartDBLabel.requires 0 3 1
1
/*
2
 * This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony).
3
 *
4
 *  Copyright (C) 2019 - 2022 Jan Böhmer (https://github.com/jbtronics)
5
 *
6
 *  This program is free software: you can redistribute it and/or modify
7
 *  it under the terms of the GNU Affero General Public License as published
8
 *  by the Free Software Foundation, either version 3 of the License, or
9
 *  (at your option) any later version.
10
 *
11
 *  This program is distributed in the hope that it will be useful,
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 *  GNU Affero General Public License for more details.
15
 *
16
 *  You should have received a copy of the GNU Affero General Public License
17
 *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
18
 */
19
20
import PartDBLabelUI from "./PartDBLabelUI";
21
import PartDBLabelEditing from "./PartDBLabelEditing";
22
23
import "./PartDBLabel.css";
24
25
import Plugin from "@ckeditor/ckeditor5-core/src/plugin";
26
27
export default class PartDBLabel extends Plugin {
28
    static get requires() {
29
        return [PartDBLabelUI, PartDBLabelEditing];
30
    }
31
32
    static get pluginName() {
33
        return 'PartDBLabel';
34
    }
35
}