Showing 14,752 of 14,752 total issues
Identical blocks of code found in 2 locations. Consider refactoring. Open
if (SchemaFactory.createDataSchema().conforms(table)) {
reader = new TableReader(table, true);
if (Collections.max(reader.getColorCounts()) == 0) {
reader = new TableReader(table, false);
- 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 92.
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
} else if (entryName.equals("library.list")) {
List<String> libNames = IOUtils.readLines(in, "UTF-8");
if (!libNames.isEmpty()) {
- 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 92.
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
try (ScriptHandler singleScriptHandler = ScriptHandler
.createHandler(SwaggerUtil.getLanguageWrittenIn(sfskObj.modelMetadata), sfskObj.packages)) {
if (sfskObj instanceof CombinedFskPortObject) {
writeCombinedObject((CombinedFskPortObject) sfskObj, archive, URIS, filePrefix,
- 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 92.
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 : indepXml.getElementSet()) {
IndepXml element = (IndepXml) el;
if (element.name.equals(AttributeUtilities.TIME)) {
variables.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 92.
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 setIndependentVariableData
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
void setIndependentVariableData() {
List<VariableData> variables = new LinkedList<>();
- Create a ticketCreate a ticket
Method execute
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
protected BufferedDataTable[] execute(final BufferedDataTable[] inData, final ExecutionContext exec)
throws Exception {
Bfrdb db = null;
/*
- Create a ticketCreate a ticket
Method readModelTable
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void readModelTable() {
models = new ArrayList<>();
modelNames = new LinkedHashMap<>();
modelFormulas = new LinkedHashMap<>();
dependentVariables = new LinkedHashMap<>();
- Create a ticketCreate a ticket
Method cellValueChanged
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
public Object cellValueChanged(int row, int col, Object oldValue, Object newValue) {
//System.out.println(row + "\t" + col + "\t" + oldValue + "\t" + newValue);
try {
if (theTable.getMyCellPropertiesModel() instanceof MyCellPropertiesModel) {
if (theTable.getColumn(col-1).getColumnName().equals("Geprueft") && oldValue == null && newValue != null &&
- Create a ticketCreate a ticket
Method button8ActionPerformed
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void button8ActionPerformed(ActionEvent e) {
//myDBTable1.myPrint();
String tt = "";
tt += "ID\t" + GuiMessages.getString("Benutzer") + "\t" + GuiMessages.getString("Letzte Aenderung") + "\n";
tt += "-----------------------------\n\n";
- Create a ticketCreate a ticket
Method checkeDoppeltVergebeneDKZs
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void checkeDoppeltVergebeneDKZs(final Statement anfrage) {
System.err.println("checkeDoppeltVergebeneDKZs - Start");
LinkedHashMap<String, MyTable> myTables = DBKernel.myDBi.getAllTables();
Hashtable<Integer, String> hash = new Hashtable<>();
for(String key : myTables.keySet()) {
- Create a ticketCreate a ticket
Method loadOther4Gui
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void loadOther4Gui() {
// knownCodeSysteme
knownCodeSysteme = new LinkedHashMap<>();
// TOP
knownCodeSysteme.put("Agenzien_TOP", new int[]{2,4}); //
- Create a ticketCreate a ticket
Method createUI
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void createUI() {
FPanel simulationPanel = new FPanel();
simulationPanel.setLayout(new BorderLayout());
JScrollPane parametersPane = new JScrollPane(
- Create a ticketCreate a ticket
Method loadPortObject
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
public FskPortObject loadPortObject(PortObjectZipInputStream in, PortObjectSpec spec, ExecutionMonitor exec)
throws IOException, CanceledExecutionException {
FskPortObject portObj = new FskPortObject();
- Create a ticketCreate a ticket
Method createUI
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void createUI() {
FPanel simulationPanel = new FPanel();
simulationPanel.setLayout(new BorderLayout());
JScrollPane parametersPane = new JScrollPane(
- Create a ticketCreate a ticket
Method getParameter
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
public DataArray getParameter() {
try {
if (isOutputClosed) {
// open Json file stream if it isn't already open
if (isInputClosed) {
- Create a ticketCreate a ticket
Method manageColor
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void manageColor() {
Color fg = Color.BLACK;
Color bg = Color.WHITE;
if (object != null) {
String param = object.toString();
- Create a ticketCreate a ticket
Method loadSettingsFrom
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Override
protected void loadSettingsFrom(NodeSettingsRO settings,
PortObject[] inObjects) throws NotConfigurableException {
PCMLPortObject pcmlPortObject = (PCMLPortObject) inObjects[0];
PCMLDocument pcmlDoc = pcmlPortObject.getPcmlDoc();
- Create a ticketCreate a ticket
Method waitWhile
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected void waitWhile(final NodeContainer nc,
final Hold hold) throws Exception {
if (!hold.shouldHold()) {
return;
}
- Create a ticketCreate a ticket
Function x86
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
function x86(_parserConfig) {
lineCommentStartSymbol = "#";
registers.ax = "variable";
registers.eax = "variable-2";
- Create a ticketCreate a ticket
Function tokenBase
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
function tokenBase(stream, state) {
var ch = stream.next();
if (/[\d\.]/.test(ch)) {
if (ch == ".") {
- Create a ticketCreate a ticket