app/js/main/bwa/analyser.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 25
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 14
mnd 0
bc 0
fnc 1
dl 0
loc 25
rs 10
bpm 0
cpm 1
noi 1
c 0
b 0
f 0
1
// jshint esversion: 8
2
3
const electron = require('electron'),
4
  debug = require('debug')('main.bwa.analyser');
0 ignored issues
show
Unused Code introduced by
The constant debug seems to be never used. Consider removing it.
Loading history...
5
6
const {
7
  app,
8
  BrowserWindow,
9
  Menu,
10
  ipcMain,
11
  dialog
12
} = electron;
13
14
/*
15
  ipcMain.on('bwa:analyser.start', function(...) {...});
16
    On event: bulk whois analyser starting up
17
  parameters
18
    event (object) - renderer object
19
    contents (object) - bulk whois lookup results object
20
 */
21
ipcMain.on('bwa:analyser.start', function(event, contents) {
22
  var {
23
    sender
24
  } = event;
25
26
  sender.send('bwa:analyser.tablegen', contents);
27
});
28