assemblymade/meta

View on GitHub

Showing 446 of 1,255 total issues

Function d3_dsv has 76 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_dsv(delimiter, mimeType) {
    function dsv(url, callback) {
      d3.text(url, mimeType, function(text) {
        callback(text && dsv.parse(text));
      });
Severity: Major
Found in app/assets/javascripts/admin/d3.v2.js - About 3 hrs to fix

    Function getImage has 76 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                                                    getImage: function(item, template) {
    
                                                        var guard = 0,
    
                                                        // image load complete handler
    Severity: Major
    Found in app/assets/javascripts/focus_home.js - About 3 hrs to fix

      File wip.rb has 293 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      require 'activerecord/uuid'
      require 'elasticsearch/model'
      
      class Wip < ActiveRecord::Base
        include ActiveRecord::UUID
      Severity: Minor
      Found in app/models/wip.rb - About 3 hrs to fix

        File product_show.js.jsx has 292 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        'use strict';
        
        const {List, Map} = require('immutable');
        const Avatar = require('../ui/avatar.js.jsx');
        const BountyCard = require('../bounty_card.js.jsx');
        Severity: Minor
        Found in app/assets/javascripts/components/products/product_show.js.jsx - About 3 hrs to fix

          Function d3_scale_ordinal has 74 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function d3_scale_ordinal(domain, ranger) {
              function scale(x) {
                return range[((index.get(x) || index.set(x, domain.push(x))) - 1) % range.length];
              }
              function steps(start, step) {
          Severity: Major
          Found in app/assets/javascripts/admin/d3.v2.js - About 2 hrs to fix

            Function BsModalMixin has 72 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var BsModalMixin = (function() {
              var handlerProps =
                ['handleShow', 'handleShown', 'handleHide', 'handleHidden']
            
              var bsModalEvents = {
            Severity: Major
            Found in app/assets/javascripts/mixins/bs_modal_mixin.js.jsx - About 2 hrs to fix

              Function render has 72 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                render: function() {
                  var bountyFilterProps = _.pick(this.props, 'tags', 'creators', 'workers')
              
                  var product = this.props.product
              
              
              Severity: Major
              Found in app/assets/javascripts/components/bounty_index.js.jsx - About 2 hrs to fix

                Function render has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  render: function() {
                    let isOpen = this.props.isOpen;
                    let header = this.props.header;
                    let bassClasses = colorbass(this.props.color);
                    let classes = {
                Severity: Major
                Found in app/assets/javascripts/components/ui/modal.js.jsx - About 2 hrs to fix

                  Function d3_svg_area has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function d3_svg_area(projection) {
                      function area(data) {
                        function segment() {
                          segments.push("M", interpolate(projection(points1), tension), L, interpolateReverse(projection(points0.reverse()), tension), "Z");
                        }
                  Severity: Major
                  Found in app/assets/javascripts/admin/d3.v2.js - About 2 hrs to fix

                    NewsFeedItem has 25 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    let NewsFeedItem = React.createClass({
                      propTypes: {
                        commentable: React.PropTypes.bool,
                        enableModal: React.PropTypes.bool,
                        productPage: React.PropTypes.bool,
                    Severity: Minor
                    Found in app/assets/javascripts/components/news_feed/news_feed_item.js.jsx - About 2 hrs to fix

                      Bounty has 25 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      let Bounty = React.createClass({
                        propTypes: {
                          bounty: React.PropTypes.shape({
                            user: React.PropTypes.object,
                          }),
                      Severity: Minor
                      Found in app/assets/javascripts/components/bounty.js.jsx - About 2 hrs to fix

                        Class BountySerializer has 25 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        class BountySerializer < ApplicationSerializer
                          include MarkdownHelper
                        
                          attributes :can_update, :comments_count, :contracts, :flagged, :following,
                            :description,
                        Severity: Minor
                        Found in app/serializers/bounty_serializer.rb - About 2 hrs to fix

                          Class ChecklistHandler has 25 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                          class ChecklistHandler
                          
                            DEFAULT_TILTING_THRESHOLD = Idea::DEFAULT_TILTING_THRESHOLD
                            COMMENT_MINIMUM = Idea::COMMENT_MINIMUM
                          
                          
                          Severity: Minor
                          Found in app/models/checklist_handler.rb - About 2 hrs to fix

                            Class WipsController has 25 methods (exceeds 20 allowed). Consider refactoring.
                            Open

                            class WipsController < ProductController
                              respond_to :html, :json
                            
                              before_filter :set_no_cache, only: [:index, :show]
                              before_action :authenticate_user!, :except => [:show, :index, :search]
                            Severity: Minor
                            Found in app/controllers/wips_controller.rb - About 2 hrs to fix

                              Function render has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                render: function() {
                                  var header
                                  var showcase = this.props.showcase
                              
                                  if (!showcase) {
                              Severity: Major
                              Found in app/assets/javascripts/components/pages/home_page.js.jsx - About 2 hrs to fix

                                File people_view.js.jsx has 281 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                
                                
                                (function() {
                                  var PeopleStore = require('../stores/people_store');
                                  var PeoplePageMixin = require('../mixins/people_page.js.jsx');
                                Severity: Minor
                                Found in app/assets/javascripts/components/people_view.js.jsx - About 2 hrs to fix

                                  Function initGallery has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                                                                      initGallery: function() {
                                  
                                                                                          var gSt = mfp.st.gallery,
                                                                                          ns = '.mfp-gallery',
                                                                                          supportsFastClick = Boolean($.fn.mfpFastClick);
                                  Severity: Major
                                  Found in app/assets/javascripts/focus_home.js - About 2 hrs to fix

                                    Function initGallery has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            initGallery: function() {
                                    
                                                var gSt = mfp.st.gallery,
                                                    ns = '.mfp-gallery',
                                                    supportsFastClick = Boolean($.fn.mfpFastClick);
                                    Severity: Major
                                    Found in app/assets/javascripts/lib/jquery.magnific-popup.js - About 2 hrs to fix

                                      Method initialize has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        def initialize(current_user)
                                          can [:read], Product do |product|
                                            if Product::PRIVATE.include?(product.slug)
                                              current_user && product.core_team?(current_user)
                                            else
                                      Severity: Major
                                      Found in app/models/ability.rb - About 2 hrs to fix

                                        Function render has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          render() {
                                            let partners = _.sortBy(
                                              _.filter(
                                                this.state.partners,
                                                (m) => { return m.coins > 0}),
                                        Severity: Major
                                        Found in app/assets/javascripts/components/products/product_partners.js.jsx - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language