FC-softwares/baseball-scoreboard

View on GitHub
app/js/actives.js

Summary

Maintainability
A
0 mins
Test Coverage

Showing 0 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Invalid

} else {
document.getElementById(id + "On").classList.remove("btn-success");
document.getElementById(id + "On").classList.add("btn-outline-success");
document.getElementById(id + "Off").classList.remove("btn-outline-danger");
document.getElementById(id + "Off").classList.add("btn-danger");
Severity: Major
Found in app/js/actives.js and 1 other location - About 3 hrs to fix
app/js/actives.js on lines 16..21

Similar blocks of code found in 2 locations. Consider refactoring.
Invalid

if (value) {
document.getElementById(id + "On").classList.remove("btn-outline-success");
document.getElementById(id + "On").classList.add("btn-success");
document.getElementById(id + "Off").classList.remove("btn-danger");
document.getElementById(id + "Off").classList.add("btn-outline-danger");
Severity: Major
Found in app/js/actives.js and 1 other location - About 3 hrs to fix
app/js/actives.js on lines 21..26

There are no issues that match your filters.

Category
Status