GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#5)
by Cedric
01:22
created

src/bin/icls.js   A

Complexity

Total Complexity 1
Complexity/F 0

Size

Lines of Code 27
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
wmc 1
c 1
b 0
f 0
nc 2
mnd 1
bc 1
fnc 0
dl 0
loc 27
rs 10
bpm 0
cpm 0
noi 1
1
import projectDescriptor from '../../package.json';
2
import program from 'commander';
3
import preview from '../commands/preview';
4
import convert from '../commands/convert';
5
6
program
7
    .version(projectDescriptor.version);
8
9
program
10
    .command('preview <file>')
11
    .description('Preview the ICLS file colors')
12
    .option('-k, -key <key>', 'Preview for the given key')
13
    .action(preview);
14
15
program
16
    .command('convert <file>')
17
    .description('Convert the given ICLS to the requested format')
18
    .option('-t , --template <file>', 'Define the css file template', './src/templates/tpl-%s.css')
19
    .option('-f , --format <format>', 'Define the output format', 'prism')
20
    .action(convert);
21
22
program.parse(process.argv);
23
24
if (!process.argv.slice(2).length) {
25
    program.outputHelp();
26
    process.exit(1);
1 ignored issue
show
Compatibility Debugging Code Best Practice introduced by
Use of process.exit() is discouraged as it will potentially stop the complete node.js application. Consider quitting gracefully instead by throwing an Error.
Loading history...
27
}
28
29