Showing 371 of 976 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 215 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 207 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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 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
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 handleMessage
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleMessage(message) {
const postMessage = message => {
this.iframeWindow.postMessage(message, window.location.origin);
};
Function Agent
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const Agent = function(userAgent) {
return {
matchesSilk: function() {
return matches(/\bSilk\b/);
},
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}});
Function configure
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
configure: function(configurationEditor) {
const entry = this.options.entry;
const editMotifAreaMenuItem = {
name: 'editMotifArea',
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}});
},
Function Selection
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function Selection(props) {
const editor = useSlate();
const {t} = useI18n({locale: 'ui'});
const ref = useRef()
Function _create
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
var element = this.element;
var options = this.options;
var scroller = options.scroller;
var links = element.find('a[href]');