jonshaffer/angular-data-table

View on GitHub
src/components/footer/PagerController.js

Summary

Maintainability
A
1 hr
Test Coverage

Showing 3 of 3 total issues

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

constructor($scope) {
Object.assign(this, {
$scope,
});
 
 
Severity: Major
Found in src/components/footer/PagerController.js and 2 other locations - About 45 mins to fix
src/components/body/BodyController.js on lines 16..24
src/components/footer/FooterController.js on lines 11..19

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

nextPage() {
if (this.canNext()) {
this.selectPage(this.page += 1);
}
}
Severity: Minor
Found in src/components/footer/PagerController.js and 1 other location - About 30 mins to fix
src/components/footer/PagerController.js on lines 75..79

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

prevPage() {
if (this.canPrevious()) {
this.selectPage(this.page -= 1);
}
}
Severity: Minor
Found in src/components/footer/PagerController.js and 1 other location - About 30 mins to fix
src/components/footer/PagerController.js on lines 84..88

There are no issues that match your filters.

Category
Status