Showing 115 of 254 total issues
File jquery.validate.js
has 1254 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery Validation Plugin v1.20.0
*
* https://jqueryvalidation.org/
*
File additional-methods.js
has 858 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery Validation Plugin v1.20.0
*
* https://jqueryvalidation.org/
*
Method get_dashicons
has 306 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function get_dashicons() {
return [
'admin-appearance',
'admin-collapse',
'admin-comments',
File media.js
has 418 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
( function ( $, wp, _, rwmb, i18n ) {
'use strict';
var views = rwmb.views = rwmb.views || {},
models = rwmb.models = rwmb.models || {},
File Data.php
has 356 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace MetaBox\Support;
class Data {
public static function get_post_types() {
File field.php
has 315 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
use MetaBox\Support\Arr;
/**
* The field base class.
Method html
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function html( $meta, $field ) {
$meta = wp_parse_args( $meta, [
'color' => '',
'image' => '',
'repeat' => '',
File file.php
has 305 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
defined( 'ABSPATH' ) || die;
/**
* The file upload file which allows users to upload files via the default HTML <input type="file">.
Function rwmbModal
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.rwmbModal = function ( options = {} ) {
options = {
...defaultOptions,
...options
};
Function transform
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function transform() {
var $this = $( this ),
options = $this.data( 'options' );
$this.removeClass( 'select2-hidden-accessible' ).removeAttr( 'data-select2-id' );
Function validate
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate: function( options ) {
// If nothing is selected, return nothing; can't chain anyway
if ( !this.length ) {
if ( options && options.debug && window.console ) {
RWMB_Field
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class RWMB_Field {
public static function add_actions() {}
public static function admin_enqueue_scripts() {}
RW_Meta_Box
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class RW_Meta_Box {
/**
* Meta box parameters.
*
* @var array
Function showLabel
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showLabel: function( element, message ) {
var place, group, errorID, v,
error = this.errorsFor( element ),
elementID = this.idOrName( element ),
describedBy = $( element ).attr( "aria-describedby" );
Method html
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function html( $meta, $field ) {
if ( ! is_array( $meta ) ) {
$meta = [ $meta ];
}
Function sliderAccess
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sliderAccess: function(options){
options = options || {};
options.touchonly = options.touchonly !== undefined? options.touchonly : true; // by default only show it if touch device
if(options.touchonly === true && !("ontouchend" in document)){
Consider simplifying this complex logical expression. Open
Open
if ( value === "" ||
value === "00000000000" ||
value === "11111111111" ||
value === "22222222222" ||
value === "33333333333" ||
Function rules
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rules: function( command, argument ) {
var element = this[ 0 ],
isContentEditable = typeof this.attr( "contenteditable" ) !== "undefined" && this.attr( "contenteditable" ) !== "false",
settings, staticRules, existingRules, data, param, filtered;
Function normalizeRules
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
normalizeRules: function( rules, element ) {
// Handle dependency check
$.each( rules, function( prop, val ) {
Function check
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
check: function( element ) {
element = this.validationTargetFor( this.clean( element ) );
var rules = $( element ).rules(),
rulesCount = $.map( rules, function( n, i ) {