Showing 14,752 of 14,752 total issues
Identical blocks of code found in 2 locations. Consider refactoring. Open
private static List<KnimeTuple> getTuples(DataTable table) {
boolean isTertiaryModel = SchemaFactory.createM12Schema().conforms(
table);
boolean containsData = SchemaFactory.createDataSchema().conforms(table);
- 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 104.
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
for (PmmXmlElementConvertable el : indepVarMap.get(id)
.getElementSet()) {
IndepXml element = (IndepXml) el;
arguments.put(element.name,
- 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 104.
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
for (PmmXmlElementConvertable el : paramMap.get(id).getElementSet()) {
ParamXml element = (ParamXml) el;
constants.put(element.name, element.value);
- 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 104.
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
if (!plotable.isPlotable()) {
stringColumns.get(ChartConstants.STATUS).add(
ChartConstants.FAILED);
} else if (PmmUtilities.isOutOfRange(paramMap.get(id))) {
stringColumns.get(ChartConstants.STATUS).add(
- 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 104.
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
private Object getAgentAttribute(boolean id, boolean name, boolean detail) throws PmmException {
PmmXmlDoc agentXmlDoc = getAgent();
if (agentXmlDoc == null) agentXmlDoc = new PmmXmlDoc();
AgentXml ax = null;
for (PmmXmlElementConvertable el : agentXmlDoc.getElementSet()) {
- 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 104.
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
private Object getMatrixAttribute(boolean id, boolean name, boolean detail) throws PmmException {
PmmXmlDoc matrixXmlDoc = getMatrix();
if (matrixXmlDoc == null) matrixXmlDoc = new PmmXmlDoc();
MatrixXml mx = null;
for (PmmXmlElementConvertable el : matrixXmlDoc.getElementSet()) {
- 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 104.
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
Method retrieveBackground
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
private GenericModelDataBackground retrieveBackground(Sheet sheet) {
final GenericModelDataBackground background = new GenericModelDataBackground();
try {
- Create a ticketCreate a ticket
Method retrieveAssay
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static Assay retrieveAssay(Row row, Map<String, Integer> columns) {
// Check first mandatory properties
final Cell nameCell = row.getCell(columns.get("name"));
if (nameCell.getCellTypeEnum() != CellType.STRING) {
- Create a ticketCreate a ticket
Method retrieveBackground
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
private GenericModelDataBackground retrieveBackground(Sheet sheet) {
final GenericModelDataBackground background = new GenericModelDataBackground();
try {
- Create a ticketCreate a ticket
Method retrieveBackground
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
private GenericModelDataBackground retrieveBackground(Sheet sheet) {
GenericModelDataBackground background = new GenericModelDataBackground();
try {
Study study = retrieveStudy(sheet);
- Create a ticketCreate a ticket
Method eIsSet
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case MetadataPackage.GENERAL_INFORMATION__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- Create a ticketCreate a ticket
Method retrieveBackground
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
private GenericModelDataBackground retrieveBackground(Sheet sheet) {
GenericModelDataBackground background = new GenericModelDataBackground();
try {
- Create a ticketCreate a ticket
Method eGet
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case MetadataPackage.GENERAL_INFORMATION__NAME:
return getName();
- Create a ticketCreate a ticket
Method execute
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
protected BufferedDataTable[] execute(final BufferedDataTable[] inData,
final ExecutionContext exec) throws Exception {
BufferedDataContainer container = exec
.createDataContainer(SchemaFactory.createDataSchema()
- Create a ticketCreate a ticket
Method setIndependentVariableData
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
void setIndependentVariableData() {
// Declare list of variables
List<VariableData> variables = new LinkedList<>();
- Create a ticketCreate a ticket
Method mergeTuples
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static KnimeTuple mergeTuples(final KnimeTuple dataTuple, final KnimeTuple m1Tuple,
final KnimeTuple m2Tuple) {
final KnimeTuple tuple = new KnimeTuple(SchemaFactory.createM12DataSchema());
- Create a ticketCreate a ticket
Method createChart
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void createChart() {
String selectedID = null;
if (configPanel.isDisplayFocusedRow()) {
selectedID = selectionPanel.getFocusedID();
- Create a ticketCreate a ticket
Method mergeTuples
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static KnimeTuple mergeTuples(KnimeTuple dataTuple, KnimeTuple m1Tuple, KnimeTuple m2Tuple) {
KnimeTuple tuple = new KnimeTuple(SchemaFactory.createM12DataSchema());
tuple.setValue(TimeSeriesSchema.ATT_CONDID, dataTuple.getInt(TimeSeriesSchema.ATT_CONDID));
- Create a ticketCreate a ticket
Method getSQL
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
private String getSQL(MyTable myFT, String myMN) {
String sql = "";
MyTable mnT = (myMN == null || myMN.equals("INT") ? null : DBKernel.myDBi.getTable(myMN));
String toSelect = DBKernel.delimitL(myFT.getTablename()) + "." + DBKernel.delimitL("ID");
String toJoin = myFT.getMNJoin(mnT);
- Create a ticketCreate a ticket
Method getReihenfolgePrev
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
private int getReihenfolgePrev(Vector<Integer[]> org_dst, Vector<Integer> indexReihenfolge) {
int wegPfeile = 0; // Ein Knoten kann mehrere Pfeile haben, die ihn verlassen ..., z.B. Salami_Test_Britta, gleich der erste Knoten "Wareneingang" führt zum einen zu "Speck (Meat, Raw)" zum anderen zu "Schweinefleich , roh (Meat, Raw)"
if (indexReihenfolge != null) {
Vector<Vector<Integer>> rhflgn = new Vector<>();
int firstIndex = indexReihenfolge.get(0);
- Create a ticketCreate a ticket