Showing 784 of 784 total issues
Function getInlineTags
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
getInlineTags: function(v, t, r) {
var u, q, s = function(C, y, x) {
var A, w, z, B, D = [];
if (!C) {
return D
Function propFilter
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
function propFilter( props, specialEasing ) {
var index, name, easing, value, hooks;
// camelCase, specialEasing and expand cssHook pass
for ( index in props ) {
Function setup
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
setup: function() {
if ( rformElems.test( this.nodeName ) ) {
// IE doesn't fire change on a check/radio until blur; trigger it on click
// after a propertychange. Eat the blur-change in special.change.handle.
Function reanimateBar
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
reanimateBar: function() {
var $el = this.$el;
var $elID = $el.attr('id');
var opt = this.opt;
var barLength = $.data($el, 'storedAttr').barLength;
Function propFilter
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
function propFilter( props, specialEasing ) {
var index, name, easing, value, hooks;
// camelCase, specialEasing and expand cssHook pass
for ( index in props ) {
Function setup
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
setup: function() {
if ( rformElems.test( this.nodeName ) ) {
// IE doesn't fire change on a check/radio until blur; trigger it on click
// after a propertychange. Eat the blur-change in special.change.handle.
Method testRunSoccialMediaResultReader
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function testRunSoccialMediaResultReader()
{
$json = json_encode([
'url' => 'https://example.com/',
'name' => 'Social Media Linter',
Method testRunYslowResultReader
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function testRunYslowResultReader()
{
$json = json_encode([
'url' => 'https://example.com/',
'name' => 'YSlow',
Similar blocks of code found in 2 locations. Consider refactoring. Open
if ((u + 2) < v.length) {
x = v.charCodeAt(u + 2)
} else {
x = 0;
w += 1
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 56.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
if ((u + 1) < v.length) {
s = v.charCodeAt(u + 1)
} else {
s = 0;
w += 1
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 56.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Function positionResultTab
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
positionResultTab: function(r, q, w) {
var u, z, A, v = 5,
x = this.panel_doc,
t = x.defaultView || x.parentWindow,
s = t.offsetHeight ? t.offsetHeight : t.innerHeight,
Function genStats
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
genStats: function(y, z) {
var v, w, s, r, B, x, q, u, t = "",
A = 0;
if (!y.PAGE) {
return ""
Function peel
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
YSLOW.peeler.peel = function(t) {
var q, w, v, u, r, x = [];
try {
w = this.findDocuments(t);
for (q in w) {
Function lint
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
lint: function(y, A, r) {
var x, z, w, t, s, v = [],
u = parseInt(r.min_cache_time, 10) * 1000,
q = A.getComponentsByType("favicon");
if (q.length) {
Function componentsView
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
componentsView: function(u, r) {
var t, q, s = "<components>";
for (t = 0; t < u.length; t += 1) {
s += "<component>";
s += "<type>" + u[t].type + "</type>";
Function offset
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
offset: function( options ) {
if ( arguments.length ) {
return options === undefined ?
this :
this.each(function( i ) {
Function off
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
off: function( types, selector, fn ) {
var handleObj, type;
if ( types && types.preventDefault && types.handleObj ) {
// ( event ) dispatched jQuery.Event
handleObj = types.handleObj;
Function bind
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Function.prototype.bind = function bind(that) {
var target = this;
if (typeof target != "function") {
Function *
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
"*": [ function( prop, value ) {
var tween = this.createTween( prop, value ),
target = tween.cur(),
parts = rfxnum.exec( value ),
unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
Function isEventSupported
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
isEventSupported = (function() {
var TAGNAMES = {
'select': 'input', 'change': 'input',
'submit': 'form', 'reset': 'form',