codevise/pageflow

View on GitHub

Showing 425 of 1,055 total issues

Function reducer has 229 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  return function reducer(state = {}, action) {
    if (action.meta &&
        action.meta.mediaScope &&
        action.meta.mediaScope !== scope) {
      return state;

    Function _create has 227 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _create: function() {
          var element = this.element,
              overlays = element.find('.navigation_site_detail'),
              toggleIndicators = function() {};
    
    

      Method pageflow_default_abilities has 218 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def pageflow_default_abilities(user)
            return if user.nil?
      
            can :read, Account, AccountPolicy::Scope.new(user, Account).resolve do |account|
              AccountPolicy.new(user, account).read?
      Severity: Major
      Found in lib/pageflow/ability_mixin.rb - About 1 day to fix

        Function playerStateReducer has 210 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function playerStateReducer(state, action){
          switch(action.type){
            case PLAY:
              return {
                ...state,

          Function Batch has 181 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export function Batch(entry, section) {
            // Shallow copy of the section's list of content elements to store
            // ordering changes and newly inserted content elements.
            const contentElements = section.contentElements.toArray();
          
          
          Severity: Major
          Found in entry_types/scrolled/package/src/editor/models/ScrolledEntry/Batch.js - About 7 hrs to fix

            Function Slideshow has 173 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export const Slideshow = function($el, configurations) {
              var transitioning = false,
                  currentPage = $(),
                  pages = $(),
                  that = this,

              File zencoder_video_output_definition.rb has 438 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              module Pageflow
                class ZencoderVideoOutputDefinition < ZencoderOutputDefinition
                  cattr_accessor :skip_hls, :skip_smil
              
                  attr_reader :video_file
              Severity: Minor
              Found in lib/pageflow/zencoder_video_output_definition.rb - About 6 hrs to fix

                Function handleMessage has 135 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  handleMessage(message) {
                    const postMessage = message => {
                      this.iframeWindow.postMessage(message, window.location.origin);
                    };
                
                

                  Function configure has 132 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    configure: function(configurationEditor) {
                      const entry = this.options.entry;
                      const editor = this.options.editor;
                  
                      const editMotifAreaMenuItem = {
                  Severity: Major
                  Found in entry_types/scrolled/package/src/editor/views/EditSectionView.js - About 5 hrs to fix

                    Function Agent has 132 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    export const Agent = function(userAgent) {
                      return {
                        matchesSilk: function() {
                          return matches(/\bSilk\b/);
                        },
                    Severity: Major
                    Found in package/src/frontend/browser/Agent.js - About 5 hrs to fix

                      Function reducer has 130 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      export function reducer(state, action) {
                        switch (action.type) {
                          case SET_MODE:
                            if (action.value === state.mode) {
                              return state;

                        File createReducer-spec.js has 383 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        import createReducer from '../createReducer';
                        import {reset, add, change, remove, order} from '../actions';
                        
                        
                        describe('createReducer', () => {

                          File createFilePlayer-spec.jsx has 375 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          import createFilePlayer from '../createFilePlayer';
                          
                          import {mount} from 'enzyme';
                          import sinon from 'sinon';
                          import Backbone from 'backbone';

                            Function webAudio has 121 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            export const webAudio = function(player, audioContext) {
                              var gainNode;
                            
                              var currentResolve;
                              var currentTimeout;
                            Severity: Major
                            Found in package/src/frontend/mediaPlayer/volumeFading/webAudio.js - About 4 hrs to fix

                              `` has 37 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                                return {
                                  togglePlaying() {
                                    return pageAction(TOGGLE_PLAYING);
                                  },
                              
                              
                              Severity: Minor
                              Found in entry_types/paged/packages/pageflow-paged-react/src/media/actions.js - About 4 hrs to fix

                                Function MultiPlayer has 120 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                export const MultiPlayer = function(pool, options) {
                                  if (options.crossFade && options.playFromBeginning) {
                                    throw 'pageflow.Audio.MultiPlayer: The options crossFade and playFromBeginning can not be used together at the moment.';
                                  }
                                
                                
                                Severity: Major
                                Found in package/src/frontend/media/MultiPlayer.js - About 4 hrs to fix

                                  Function createActions has 119 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  export function createActions(dispatch){
                                    return {
                                      playBlessed({via} = {}){
                                        media.mute(false);
                                        dispatch({type: PLAY, payload: {via}});

                                    Class ZencoderVideoOutputDefinition has 35 methods (exceeds 20 allowed). Consider refactoring.
                                    Open

                                      class ZencoderVideoOutputDefinition < ZencoderOutputDefinition
                                        cattr_accessor :skip_hls, :skip_smil
                                    
                                        attr_reader :video_file
                                    
                                    
                                    Severity: Minor
                                    Found in lib/pageflow/zencoder_video_output_definition.rb - About 4 hrs to fix

                                      `` has 33 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                        return {
                                          playBlessed({via} = {}){
                                            media.mute(false);
                                            dispatch({type: PLAY, payload: {via}});
                                          },

                                        Function Selection has 104 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        export function Selection(props) {
                                          const editor = useSlate();
                                          const {t} = useI18n({locale: 'ui'});
                                        
                                          const ref = useRef()
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language