Showing 14,752 of 14,752 total issues
Function initServer
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
BootstrapTable.prototype.initServer = function (silent, query, url) {
var that = this,
data = {},
params = {
searchText: this.searchText,
- Create a ticketCreate a ticket
Function voronoi
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
function voronoi(data) {
var points, polygons = data.map(function() {
return [];
}), fx = d3_functor(x), fy = d3_functor(y), d, i, n = data.length, Z = 1e6;
if (fx === d3_svg_lineX && fy === d3_svg_lineY) points = data; else for (points = new Array(n),
- Create a ticketCreate a ticket
Function d3_geo_resample
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
function d3_geo_resample(project) {
var δ2 = .5, cosMinDistance = Math.cos(30 * d3_radians), maxDepth = 16;
function resample(stream) {
var λ00, φ00, x00, y00, a00, b00, c00, λ0, x0, y0, a0, b0, c0;
var resample = {
- Create a ticketCreate a ticket
Function reDesign
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
function reDesign(ID) {
var row = " <div class='row'>"
+ " <div class='col-xs-3 col-sm-3 col-lg-2 "
+ ID
+ "SideBar'><div class='list-group' id ='"
- Create a ticketCreate a ticket
File Backup.java
has 278 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*******************************************************************************
* Copyright (c) 2015 Federal Institute for Risk Assessment (BfR), Germany
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- Create a ticketCreate a ticket
AssayImpl
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
public class AssayImpl extends MinimalEObjectImpl.Container implements Assay {
/**
* The default value of the '{@link #getAssayName() <em>Assay Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- Create a ticketCreate a ticket
EditTable
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
private static class EditTable extends AbstractTableModel {
private static final long serialVersionUID = 1L;
private List<String> ids;
- Create a ticketCreate a ticket
JSSimulatorNodeModel
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
class JSSimulatorNodeModel
extends AbstractWizardNodeModel<JSSimulatorViewRepresentation, JSSimulatorViewValue>
implements PortObjectHolder {
private static final NodeLogger LOGGER =
- Create a ticketCreate a ticket
JSSimulatorNodeModel
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
public class JSSimulatorNodeModel
extends AbstractWizardNodeModel<JSSimulatorViewRepresentation, JSSimulatorViewValue>
implements PortObjectHolder {
private static final NodeLogger LOGGER =
- Create a ticketCreate a ticket
WriterNodeModel
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
class WriterNodeModel extends NoInternalsModel {
private static final PortType[] IN_TYPES = {FskPortObject.TYPE};
private static final PortType[] OUT_TYPES = {};
- Create a ticketCreate a ticket
ModelReaderUi
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
public class ModelReaderUi extends JPanel implements ActionListener {
private static final long serialVersionUID = 20120828;
public static final String PARAM_LEVEL = "level";
- Create a ticketCreate a ticket
Matrix
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
public interface Matrix extends org.apache.xmlbeans.XmlObject
{
public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Matrix.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s4093BF42617F62F34AE6DB75748ED513").resolveHandle("matrix5f96elemtype");
- Create a ticketCreate a ticket
MatrixImpl
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
public static class MatrixImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements de.bund.bfr.pcml10.MatrixDocument.Matrix
{
private static final long serialVersionUID = 1L;
public MatrixImpl(org.apache.xmlbeans.SchemaType sType)
- Create a ticketCreate a ticket
AgentImpl
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
public static class AgentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements de.bund.bfr.pcml10.AgentDocument.Agent
{
private static final long serialVersionUID = 1L;
public AgentImpl(org.apache.xmlbeans.SchemaType sType)
- Create a ticketCreate a ticket
Agent
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
public interface Agent extends org.apache.xmlbeans.XmlObject
{
public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Agent.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s4093BF42617F62F34AE6DB75748ED513").resolveHandle("agent4636elemtype");
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
if (column.checkbox || column.radio) {
type = column.checkbox ? 'checkbox' : type;
type = column.radio ? 'radio' : type;
text = [sprintf(that.options.cardView ?
- Create a ticketCreate a ticket
Identical blocks of code found in 2 locations. Consider refactoring. Open
package de.bund.bfr.knime.fsklab.nodes.environment;
import java.io.IOException;
import java.net.URL;
import java.nio.file.Files;
- 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 170.
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 2 locations. Consider refactoring. Open
package de.bund.bfr.knime.fsklab.nodes.environment;
import java.io.IOException;
import java.net.URL;
import java.nio.file.Files;
- 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 170.
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 3 locations. Consider refactoring. Open
public ConsumptionModelScope retrieveScope(Sheet sheet) {
ConsumptionModelScope scope = new ConsumptionModelScope();
for (int numrow = SCOPE_PRODHAZPOP_ROW; numrow <= (SCOPE_PRODHAZPOP_ROW + 11); numrow++) {
- 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 170.
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 3 locations. Consider refactoring. Open
public DoseResponseModelScope retrieveScope(Sheet sheet) {
DoseResponseModelScope scope = new DoseResponseModelScope();
//col_offset = 12;
- 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 170.
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