Lines of Code | 14 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
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) { |
||
|
|||
11 | this.api.echo(this.api.options.helpInfo); |
||
12 | this.api.serverInfo(); |
||
13 | } |
||
14 | } |
||
15 |
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.