Showing 451 of 1,081 total issues
Function reducer
has 229 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
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?
Function playerStateReducer
has 210 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function playerStateReducer(state, action){
switch(action.type){
case PLAY:
return {
...state,
Function reducer
has 202 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function reducer(state, action) {
switch (action.type) {
case SET_MODE:
if (action.value === state.mode) {
return state;
Function Batch
has 181 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();
Function Slideshow
has 173 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const Slideshow = function($el, configurations) {
var transitioning = false,
currentPage = $(),
pages = $(),
that = this,
File reducer.js
has 451 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export const SET_MODE = 'SET_MODE';
export const DRAG = 'DRAG';
export const CLICK_HANDLE = 'CLICK_HANDLE';
export const DRAG_HANDLE = 'DRAG_HANDLE';
export const DRAG_HANDLE_STOP = 'DRAG_HANDLE_STOP';
File zencoder_video_output_definition.rb
has 438 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module Pageflow
class ZencoderVideoOutputDefinition < ZencoderOutputDefinition
cattr_accessor :skip_hls, :skip_smil
attr_reader :video_file
Function handleMessage
has 135 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
configure: function(configurationEditor) {
const entry = this.options.entry;
const editor = this.options.editor;
const editMotifAreaMenuItem = {
Function Agent
has 132 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const Agent = function(userAgent) {
return {
matchesSilk: function() {
return matches(/\bSilk\b/);
},
File createReducer-spec.js
has 383 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
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
Open
export const webAudio = function(player, audioContext) {
var gainNode;
var currentResolve;
var currentTimeout;
`` has 37 functions (exceeds 20 allowed). Consider refactoring. Open
Open
return {
togglePlaying() {
return pageAction(TOGGLE_PLAYING);
},
Function MultiPlayer
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
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.';
}
Function createActions
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
class ZencoderVideoOutputDefinition < ZencoderOutputDefinition
cattr_accessor :skip_hls, :skip_smil
attr_reader :video_file
`` has 33 functions (exceeds 20 allowed). Consider refactoring. Open
Open
return {
playBlessed({via} = {}){
media.mute(false);
dispatch({type: PLAY, payload: {via}});
},