Showing 14,752 of 14,752 total issues
Function bind
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
InfiniteScroll.prototype.bind = function (decorated, container, $container) {
var self = this;
decorated.call(this, container, $container);
- Create a ticketCreate a ticket
Function _destroy
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
_destroy: function() {
this._mouseDestroy();
var wrapper,
- Create a ticketCreate a ticket
Function getGlobalxUnit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
function getGlobalxUnit(formulaPrim,paramsPrim,indepsPrim,depPrim,secondaryIndeps,secondaryIndepNames,tertiaryModel){
if(!tertiaryModel.m2List){
for(i in indepsPrim){
- Create a ticketCreate a ticket
Function add_independent_parameter
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
function add_independent_parameter(indep) {
var class_cell = '<td></td>';
var name_cell = '<td>' + indep.name + '</td>';
var indep_unit = indep.unit ? indep.unit : '';
- Create a ticketCreate a ticket
Function add_dep_parameter
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
function add_dep_parameter(dep) {
var class_cell = '<td></td>';
var name_cell = '<td>' + dep.name + '</td>';
var dep_unit = dep.unit ? dep.unit : '';
- Create a ticketCreate a ticket
Function set
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
set: function( elem, value ) {
var parsed, curElem,
backgroundColor = "";
if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
- Create a ticketCreate a ticket
Function loop
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
var loop = function ( o ) {
context.baseTokens = st
var overlay = cm.state.overlays[o], i = 1, at = 0
context.state = true
runMode(cm, line.text, overlay.mode, context, function (end, style) {
- Create a ticketCreate a ticket
Function _createPanels
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
_createPanels() {
let schema = schemas.consumptionModel;
return {
- Create a ticketCreate a ticket
Function blankLine
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
function blankLine(state) {
// Reset linkTitle state
state.linkTitle = false;
state.linkHref = false;
state.linkText = false;
- Create a ticketCreate a ticket
Function loop
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
var loop = function ( o ) {
context.baseTokens = st
var overlay = cm.state.overlays[o], i = 1, at = 0
context.state = true
runMode(cm, line.text, overlay.mode, context, function (end, style) {
- Create a ticketCreate a ticket
Function resolve
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
function resolve(compile, root, ref) {
/* jshint validthis: true */
var refVal = this._refs[ref];
if (typeof refVal == 'string') {
if (this._refs[refVal]) refVal = this._refs[refVal];
- Create a ticketCreate a ticket
Function resolveSchema
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
function resolveSchema(root, ref) {
/* jshint validthis: true */
var p = URI.parse(ref)
, refPath = _getFullPath(p)
, baseId = getFullPath(this._getId(root.schema));
- Create a ticketCreate a ticket
Function formatDate
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
formatDate: function(date, format, language){
if (!date)
return '';
if (typeof format === 'string')
format = DPGlobal.parseFormat(format);
- Create a ticketCreate a ticket
Function hide
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Collapse.prototype.hide = function () {
if (this.transitioning || !this.$element.hasClass('in')) return
var startEvent = $.Event('hide.bs.collapse')
this.$element.trigger(startEvent)
- Create a ticketCreate a ticket
Function refresh
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
ScrollSpy.prototype.refresh = function () {
var that = this
var offsetMethod = 'offset'
var offsetBase = 0
- Create a ticketCreate a ticket
Function next
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
function next() {
$active
.removeClass('active')
.find('> .dropdown-menu > .active')
.removeClass('active')
- Create a ticketCreate a ticket
Identical blocks of code found in 4 locations. Consider refactoring. Open
if (joinerModelsData.fourthModelParameters == null && fourthInputPort != null) {
List<Parameter> fourthModelParams = SwaggerUtil.getParameter(fourthInputPort.modelMetadata);
if (fourthModelParams != null && !fourthModelParams.isEmpty()) {
joinerModelsData.fourthModelParameters =
fourthModelParams.toArray(new Parameter[fourthModelParams.size()]);
- Read upRead up
- Create a ticketCreate a ticket
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 72.
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
Identical blocks of code found in 4 locations. Consider refactoring. Open
if (joinerModelsData.firstModelParameters == null && firstInputPort != null) {
List<Parameter> firstModelParams = SwaggerUtil.getParameter(firstInputPort.modelMetadata);
if (firstModelParams != null && !firstModelParams.isEmpty()) {
joinerModelsData.firstModelParameters =
firstModelParams.toArray(new Parameter[firstModelParams.size()]);
- Read upRead up
- Create a ticketCreate a ticket
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 72.
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
Identical blocks of code found in 4 locations. Consider refactoring. Open
if (joinerModelsData.thirdModelParameters == null && thirdInputPort != null) {
List<Parameter> thirdModelParams = SwaggerUtil.getParameter(thirdInputPort.modelMetadata);
if (thirdModelParams != null && !thirdModelParams.isEmpty()) {
joinerModelsData.thirdModelParameters =
thirdModelParams.toArray(new Parameter[thirdModelParams.size()]);
- Read upRead up
- Create a ticketCreate a ticket
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 72.
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
Identical blocks of code found in 4 locations. Consider refactoring. Open
if (joinerModelsData.secondModelParameters == null && secondInputPort != null) {
List<Parameter> secondModelParams = SwaggerUtil.getParameter(secondInputPort.modelMetadata);
if (secondModelParams != null && !secondModelParams.isEmpty()) {
joinerModelsData.secondModelParameters =
secondModelParams.toArray(new Parameter[secondModelParams.size()]);
- Read upRead up
- Create a ticketCreate a ticket
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 72.
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