Showing 9,050 of 9,050 total issues
Method equals
has 110 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
File EAssetDao.java
has 349 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* This file is generated by jOOQ.
*/
package cn.vertxup.erp.domain.tables.daos;
_Value
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
class _Value extends _To {
protected _Value() {
}
/**
IVTable
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public interface IVTable extends VertxPojo, Serializable {
/**
* Setter for <code>DB_ETERNAL.V_TABLE.KEY</code>. 「key」- 表选项主键
ILCountry
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public interface ILCountry extends VertxPojo, Serializable {
/**
* Setter for <code>DB_ETERNAL.L_COUNTRY.KEY</code>. 「key」- 国家主键
GEdgeDao
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class GEdgeDao extends AbstractVertxDAO<GEdgeRecord, cn.vertxup.graphic.domain.tables.pojos.GEdge, String, Future<List<cn.vertxup.graphic.domain.tables.pojos.GEdge>>, Future<cn.vertxup.graphic.domain.tables.pojos.GEdge>, Future<Integer>, Future<String>> implements io.github.jklingsporn.vertx.jooq.classic.VertxDAO<GEdgeRecord,cn.vertxup.graphic.domain.tables.pojos.GEdge,String> {
/**
* @param configuration The Configuration used for rendering and query
ISGroup
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public interface ISGroup extends VertxPojo, Serializable {
/**
* Setter for <code>DB_ETERNAL.S_GROUP.KEY</code>. 「key」- 组ID
XTabularDao
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class XTabularDao extends AbstractVertxDAO<XTabularRecord, cn.vertxup.ambient.domain.tables.pojos.XTabular, String, Future<List<cn.vertxup.ambient.domain.tables.pojos.XTabular>>, Future<cn.vertxup.ambient.domain.tables.pojos.XTabular>, Future<Integer>, Future<String>> implements io.github.jklingsporn.vertx.jooq.classic.VertxDAO<XTabularRecord,cn.vertxup.ambient.domain.tables.pojos.XTabular,String> {
/**
* @param configuration The Configuration used for rendering and query
IXModule
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public interface IXModule extends VertxPojo, Serializable {
/**
* Setter for <code>DB_ETERNAL.X_MODULE.KEY</code>. 「key」- 模块唯一主键
XActivityChangeDao
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class XActivityChangeDao extends AbstractVertxDAO<XActivityChangeRecord, cn.vertxup.ambient.domain.tables.pojos.XActivityChange, String, Future<List<cn.vertxup.ambient.domain.tables.pojos.XActivityChange>>, Future<cn.vertxup.ambient.domain.tables.pojos.XActivityChange>, Future<Integer>, Future<String>> implements io.github.jklingsporn.vertx.jooq.classic.VertxDAO<XActivityChangeRecord,cn.vertxup.ambient.domain.tables.pojos.XActivityChange,String> {
/**
* @param configuration The Configuration used for rendering and query
PCommodityHisDao
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PCommodityHisDao extends AbstractVertxDAO<PCommodityHisRecord, cn.vertxup.psi.domain.tables.pojos.PCommodityHis, String, Future<List<cn.vertxup.psi.domain.tables.pojos.PCommodityHis>>, Future<cn.vertxup.psi.domain.tables.pojos.PCommodityHis>, Future<Integer>, Future<String>> implements io.github.jklingsporn.vertx.jooq.classic.VertxDAO<PCommodityHisRecord,cn.vertxup.psi.domain.tables.pojos.PCommodityHis,String> {
/**
* @param configuration The Configuration used for rendering and query
IMyBag
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public interface IMyBag extends VertxPojo, Serializable {
/**
* Setter for <code>DB_ETERNAL.MY_BAG.KEY</code>. 「key」- 个人应用主键
IMIndex
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public interface IMIndex extends VertxPojo, Serializable {
/**
* Setter for <code>DB_ETERNAL.M_INDEX.KEY</code>. 「key」- 索引ID
IMEntity
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public interface IMEntity extends VertxPojo, Serializable {
/**
* Setter for <code>DB_ETERNAL.M_ENTITY.KEY</code>. 「key」- 实体ID
Similar blocks of code found in 2 locations. Consider refactoring. Open
package io.vertx.mod.rbac.acl.relation;
import cn.vertxup.rbac.domain.tables.daos.RUserRoleDao;
import cn.vertxup.rbac.domain.tables.pojos.RUserRole;
import io.vertx.core.Future;
- 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 268.
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
package io.vertx.mod.rbac.acl.relation;
import cn.vertxup.rbac.domain.tables.daos.RUserGroupDao;
import cn.vertxup.rbac.domain.tables.pojos.RUserGroup;
import io.vertx.core.Future;
- 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 268.
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
File TPeriod.java
has 344 lines of code (exceeds 250 allowed). Consider refactoring. Open
package io.horizon.util;
import java.time.*;
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAccessor;
Method combineAsync
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
static Future<JsonArray> combineAsync(final JsonArray data, final ConcurrentMap<String, String> headers,
final List<String> columns,
final HMetaAtom metaAtom) {
final JsonArray combined = new JsonArray();
final boolean complex;
LCountry
has 33 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class LCountry implements VertxPojo, ILCountry {
private static final long serialVersionUID = 1L;
MyDesktop
has 33 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class MyDesktop implements VertxPojo, IMyDesktop {
private static final long serialVersionUID = 1L;