Passed
Push — develop ( 31af39...1ae34d )
by Andrew
26:09 queued 20:25
created

src/web/assets/src/js/alerts.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 13
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
c 0
b 0
f 0
dl 0
loc 13
rs 10
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 4
1
import VeeValidate from 'vee-validate';
2
3
Vue.use(VeeValidate);
0 ignored issues
show
Bug introduced by
The variable Vue seems to be never declared. If this is a global, consider adding a /** global: Vue */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
4
// Create our vue instance
5
const vm = new Vue({
0 ignored issues
show
Unused Code introduced by
The constant vm seems to be never used. Consider removing it.
Loading history...
Coding Style introduced by
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
6
    el: "#cp-nav-content",
7
    components: {
8
    },
9
    data: {
10
    },
11
    mounted() {
12
    },
13
});
0 ignored issues
show
Coding Style introduced by
For multi-line function calls, the closing parenthesis should be on a new line.

If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line:

someFunctionCall(
    $firstArgument,
    $secondArgument,
    $thirdArgument
); // Closing parenthesis on a new line.
Loading history...
14