Passed
Push — v1 ( 1e04ac...c50bd5 )
by Andrew
16:32 queued 09:40
created

src/assetbundles/richvariables/src/js/Welcome.js   A

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 22
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 13
c 0
b 0
f 0
dl 0
loc 22
rs 10
mnd 1
bc 1
fnc 1
bpm 1
cpm 2
noi 3
1
2
import Vue from 'vue';
3
import Confetti from '../vue/Confetti.vue';
4
5
// Create our vue instance
6
const vm = new Vue({
0 ignored issues
show
Coding Style introduced by
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
Unused Code introduced by
The constant vm seems to be never used. Consider removing it.
Loading history...
7
    el: "#cp-nav-content",
8
    delimiters: ["${", "}"],
9
    components: {
10
        'confetti': Confetti,
11
    },
12
    data: {
13
    },
14
    methods: {
15
    },
16
    mounted() {
17
    },
18
});
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...
19
20
// Accept HMR as per: https://webpack.js.org/api/hot-module-replacement#accept
21
if (module.hot) {
22
    module.hot.accept();
23
}
24