busy-web/ember-date-time

View on GitHub
addon/utils/clock.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function setBounds has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    setBounds(minX, minY, width, height) {
        // hide box until calculations have been made
        // safari fix
        this.svg.__el.style.display = "none";
        this.svg.snap.attr({ viewBox: `${minX} ${minY} ${width} ${height}` });
Severity: Minor
Found in addon/utils/clock.js - About 1 hr to fix

    Function handleDrag has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        handleDrag(num, cb) {
            const faceAttrs = getAttrs(this.svg.face, ['cx', 'cy']);
            const angle = getSliceDegree(this.points.length, num);
    
            const { plot, arm, text } = this.svg.at(num);
    Severity: Minor
    Found in addon/utils/clock.js - About 1 hr to fix

      Function createMetaFor has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      export function createMetaFor(component, key, start, end, min, max, rounder, selectRounder) {
      Severity: Major
      Found in addon/utils/clock.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status