web/client/plugins/vue-warn.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 10
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
mnd 1
bc 1
fnc 1
dl 0
loc 10
rs 10
bpm 1
cpm 2
noi 5
c 0
b 0
f 0
1
import Vue from 'vue'
2
3
const ignoreWarnMessage = 'The .native modifier for v-on is only valid on components but it was used on <svg>.'
4
Vue.config.warnHandler = (msg, vm, trace) => {
0 ignored issues
show
Unused Code introduced by
The parameter trace 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...
Unused Code introduced by
The parameter vm 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...
5
  if (msg === ignoreWarnMessage) {
6
    msg = null
0 ignored issues
show
Unused Code introduced by
The assignment to msg seems to be never used. If you intend to free memory here, this is not necessary since the variable leaves the scope anyway.
Loading history...
7
    vm = null
0 ignored issues
show
Unused Code introduced by
The variable vm seems to be never used. Consider removing it.
Loading history...
8
    trace = null
0 ignored issues
show
Unused Code introduced by
The variable trace seems to be never used. Consider removing it.
Loading history...
9
  }
10
}
11