rosa-abf/rosa-build

View on GitHub
app/assets/javascripts/angularjs/models/project_ref.js

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

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

self.get_sha1_of_archive_path = function(project, type) {
return Routes.get_sha1_of_archive_path(project.fullname, project.name + '-' + self.ref, {format: type});
}
Severity: Major
Found in app/assets/javascripts/angularjs/models/project_ref.js and 1 other location - About 1 hr to fix
app/assets/javascripts/angularjs/models/project_ref.js on lines 25..27

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

self.archive_path = function(project, type) {
return Routes.archive_path(project.fullname, project.name + '-' + self.ref, {format: type});
}
Severity: Major
Found in app/assets/javascripts/angularjs/models/project_ref.js and 1 other location - About 1 hr to fix
app/assets/javascripts/angularjs/models/project_ref.js on lines 29..31

There are no issues that match your filters.

Category
Status