Test Setup Failed
Push — master ( 8ee19e...25278d )
by recca
05:07 queued 46s
created

resources/assets/js/commands/help.js   A

Size

Lines of Code 14

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
nc 1
dl 0
loc 14
rs 10
c 1
b 0
f 0
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A help.js ➔ ??? 0 3 1
1
'use strict';
2
3
import Command from './command';
4
5
export default class Help extends Command {
6
    match(name) {
7
        return ['list', 'help'].includes(name);
8
    }
9
10
    call(cmd) {
0 ignored issues
show
Unused Code introduced by
The parameter cmd is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
11
        this.api.echo(this.api.options.helpInfo);
12
        this.api.serverInfo();
13
    }
14
}
15