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

src/web/assets/src/js/dashboard.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 27
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 22
c 0
b 0
f 0
dl 0
loc 27
rs 10
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 4
1
import VueEvents from 'vue-events';
2
import Confetti from '@/vue/common/Confetti.vue';
3
import RadialBarChart from '@/vue/charts/common/RadialBarChart.vue';
4
import SimpleBarChart from '@/vue/charts/common/SimpleBarChart.vue';
5
import DashboardFileList from '@/vue/charts/dashboard/DashboardFileList.vue';
6
import SampleRangePicker from '@/vue/common/SampleRangePicker.vue';
7
import SamplePaneFooter from '@/vue/common/SamplePaneFooter.vue';
8
import RecommendationsList from '@/vue/common/RecommendationsList.vue';
9
10
Vue.use(VueEvents);
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...
11
// Create our vue instance
12
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...
13
    el: "#cp-nav-content",
14
    components: {
15
        'confetti': Confetti,
16
        'radial-bar-chart': RadialBarChart,
17
        'simple-bar-chart': SimpleBarChart,
18
        'dashboard-file-list': DashboardFileList,
19
        'sample-range-picker': SampleRangePicker,
20
        'sample-pane-footer': SamplePaneFooter,
21
        'recommendations-list': RecommendationsList,
22
    },
23
    data: {
24
    },
25
    mounted() {
26
    },
27
});
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...
28