matiasmenares/Nissboard

View on GitHub
src/components/public/mixins/var_config_dashboard.js

Summary

Maintainability
C
7 hrs
Test Coverage

Showing 3 of 3 total issues

Similar blocks of code found in 3 locations. Consider refactoring.
Open

this.axios.post("/var_config", {var_config: { var_config_id: 1, value: false}}).then(result => {
console.log(result)
}).catch(error => {
console.log(error);
})
Severity: Major
Found in src/components/public/mixins/var_config_dashboard.js and 2 other locations - About 2 hrs to fix
src/components/public/mixins/var_config_dashboard.js on lines 7..11
src/components/public/mixins/var_config_dashboard.js on lines 17..21

Similar blocks of code found in 3 locations. Consider refactoring.
Open

this.axios.post("/var_config", {var_config: { var_config_id: 4, value: false}}).then(result => {
console.log(result)
}).catch(error => {
console.log(error);
})
Severity: Major
Found in src/components/public/mixins/var_config_dashboard.js and 2 other locations - About 2 hrs to fix
src/components/public/mixins/var_config_dashboard.js on lines 7..11
src/components/public/mixins/var_config_dashboard.js on lines 12..16

Similar blocks of code found in 3 locations. Consider refactoring.
Open

this.axios.post("/var_config", {var_config: { var_config_id: 3, value: true}}).then(result => {
console.log(result)
}).catch(error => {
console.log(error);
})
Severity: Major
Found in src/components/public/mixins/var_config_dashboard.js and 2 other locations - About 2 hrs to fix
src/components/public/mixins/var_config_dashboard.js on lines 12..16
src/components/public/mixins/var_config_dashboard.js on lines 17..21

There are no issues that match your filters.

Category
Status