gngeorgiev/firesync

View on GitHub

Showing 8 of 23 total issues

File firesync-test.js has 523 lines of code (exceeds 250 allowed). Consider refactoring.
Open

'use strict';

var firesync;
var Firebase;

Severity: Major
Found in test/firesync-test.js - About 1 day to fix

    Function _attach has 95 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _attach() {
            Object.observe(this, (args) => {
                let filteredArgs = _.chain(args)
                .filter((arg) => {
                    return !this.$$.FILTERED_PROPERTIES.has(arg.name);
    Severity: Major
    Found in src/firesyncBase.js - About 3 hrs to fix

      File firesyncBase.js has 268 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      'use strict';
      
      import { EventEmitter2 } from 'eventemitter2';
      import _ from 'lodash';
      import queue from 'queue';
      Severity: Minor
      Found in src/firesyncBase.js - About 2 hrs to fix

        Function _updateBindings has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _updateBindings(changes, origin, target = constants.BINDING_TARGET.ANY, force = false) {
                return new Promise((resolve) => {
                    let bindingQueue = queue();
        
                    this.$$.bindings.forEach((binding) => {
        Severity: Minor
        Found in src/firesyncBase.js - About 1 hr to fix

          Function bindTo has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              bindTo(settings) {
                  _.extend(settings, {
                      data: this
                  });
          
          
          Severity: Minor
          Found in src/firesyncBase.js - About 1 hr to fix

            Function handler has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                            let handler = (snap, prevChild) => {
                                let property = snap.key();
                                let value = snap.val();
                                let type;
            
            
            Severity: Minor
            Found in src/firesyncBase.js - About 1 hr to fix

              Function map has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function map(ref) {
                  return new Promise((resolve) => {
                      ref.once('value', (snap) => {
                          let val = snap.val();
              
              
              Severity: Minor
              Found in src/firesync.js - About 1 hr to fix

                Function queuedBinding has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                let queuedBinding = (cb) => {
                                    if (binding.inProgress && binding.origin !== origin && !force) {
                                        return cb();
                                    }
                
                
                Severity: Minor
                Found in src/firesyncBase.js - About 1 hr to fix
                  Severity
                  Category
                  Status
                  Source
                  Language