SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Define a constant instead of duplicating this literal "description" 16 times.
Open

OLD_PRODUCT.setProductDescription("description");

Define a constant instead of duplicating this literal "method" 4 times.
Open

OLD_PRODUCT.setProductionMethod("method");

Define a constant instead of duplicating this literal "files/metadata.json" 12 times.
Open

JsonNode inputMetadata = MAPPER.readTree(new File("files/metadata.json"));

Define a constant instead of duplicating this literal "country" 5 times.
Open

deprecated.country.add("country");

Add a default case to this switch.
Open

switch (flowVar.getType()) {

Define a constant instead of duplicating this literal "available" 5 times.
Open

assertNull(XmlHelper.getBoolean(element, "available"));

Define a constant instead of duplicating this literal "comment" 5 times.
Open

MdInfoXml mdInfo = new MdInfoXml(0, "name", "comment", 0, false);

Define a constant instead of duplicating this literal "comment" 12 times.
Open

0, "website", 0, "comment", 0, "dbuuid");

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
Open

public void loadSettingsForDialog(final NodeSettingsRO settings) {

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
Open

public void saveSettings(final NodeSettingsWO settings) {

Define a constant instead of duplicating this literal "http://www.bfr.bund.de/PCML-1_0" 3 times.
Open

new javax.xml.namespace.QName("http://www.bfr.bund.de/PCML-1_0", "ProcessChain");

Define a constant instead of duplicating this literal "http://www.bfr.bund.de/PCML-1_0" 5 times.
Open

new javax.xml.namespace.QName("http://www.bfr.bund.de/PCML-1_0", "ProcessNode");

Define a constant instead of duplicating this literal "http://www.bfr.bund.de/PCML-1_0" 3 times.
Open

new javax.xml.namespace.QName("http://www.bfr.bund.de/PCML-1_0", "ProcessChainData");

Define a constant instead of duplicating this literal "http://www.bfr.bund.de/PCML-1_0" 4 times.
Open

new javax.xml.namespace.QName("http://www.bfr.bund.de/PCML-1_0", "ChildParent");

Refactor this method to reduce its Cognitive Complexity from 30 to the 15 allowed.
Open

public Object getValueAt(int row, int col) {

Use try-with-resources or close this "ReadableByteChannel" in a "finally" clause.
Open

ReadableByteChannel readableByteChannel = Channels.newChannel(url.openStream());

Use static access with "javax.swing.SwingConstants" for "RIGHT".
Open

field.setHorizontalAlignment(JTextField.RIGHT);

Refactor this method to reduce its Cognitive Complexity from 27 to the 15 allowed.
Open

protected PortObject[] performExecute(PortObject[] inObjects, ExecutionContext exec)

Use try-with-resources or close this "FileWriter" in a "finally" clause.
Open

FileWriter writer = new FileWriter(tempData);

Make "icons" transient or serializable.
Open

private Map<Object, Icon> icons = null;
Severity
Category
Status
Source
Language