QutBioacousticsResearchGroup/bioacoustic-workbench

View on GitHub
app/assets/javascripts/angular/models/annotation.js

Summary

Maintainability
A
1 hr
Test Coverage

Function Annotation has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    baw.Annotation = function Annotation(localIdOrResource, audioRecordingId) {

        var localId = typeof(localIdOrResource) === "number" ? localIdOrResource : undefined;
        var resource;
        if (localIdOrResource instanceof Object && localIdOrResource.constructor.name == "Resource") {
Severity: Minor
Found in app/assets/javascripts/angular/models/annotation.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status