Showing 14,752 of 14,752 total issues
Method loadSettingsFrom
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected void loadSettingsFrom(NodeSettingsRO settings, PortObject[] input)
throws NotConfigurableException {
FskPortObject fskObj = (FskPortObject) input[0];
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Avoid deeply nested control flow statements. Open
if (joinRelation.getSourceParam().getId()
.equals(sourceParameter.getId())) {
// override the value of the target parameter with the value generated by the
// command
for (FskSimulation sim : secondFskObj.simulations) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
for (Parameter sourceParameter : SwaggerUtil.getParameter(firstFskObj.modelMetadata)) {
if (joinRelation.getSourceParam().getId()
.equals(sourceParameter.getId())) {
// override the value of the target parameter with the value generated by the
- Create a ticketCreate a ticket
Method saveJsonSetting
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
protected void saveJsonSetting(String joinRelation, String modelMetaData, String modelScriptTree,
String visualizationScript, String modelMath1, String modelMath2)
- Create a ticketCreate a ticket
Method runSnippet
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public final void runSnippet(final FskPortObject fskObj, final FskSimulation simulation,
final ExecutionContext exec, NodeLogger LOGGER,
final RunnerNodeInternalSettings internalSettings, RunnerNodeSettings nodeSettings)
- Create a ticketCreate a ticket
Method runSnippet
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
private FskPortObject runSnippet(ScriptHandler handler, final FskPortObject fskObj,
final FskSimulation simulation, final ExecutionContext exec) throws Exception {
handler.runSnippet(fskObj, simulation, exec, LOGGER, internalSettings, nodeSettings);
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method createExtSubModel
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public static ExternalModelDefinition createExtSubModel(SBMLDocument doc, String externalFileName,
String filePrefix, CompSBMLDocumentPlugin compDoc, CompModelPlugin compMainModel,
String subModelName) throws IOException, SBMLException, XMLStreamException {
- Create a ticketCreate a ticket
Method getEnvironment
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
@Override
public Optional<Path> getEnvironment() {
if (archivePath == null || archivePath.isEmpty())
return Optional.empty();
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method stepIntoSubModel
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
private FskPortObject stepIntoSubModel(FskPortObject fskObj, FskSimulation fskSimulation,
FskSimulation combinedSim,
final ExecutionContext exec,
List<JoinRelationAdvanced> joinRelationList,
String suffix) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
if (commandNode != null
&& commandNode.hasAttr(NodeUtils.METADATA_COMMAND_VALUE)) {
command = commandNode.getAttrValue(NodeUtils.METADATA_COMMAND_VALUE);
}
- Create a ticketCreate a ticket
Method addToken
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public void addToken(final char[] array, final int start, final int end, final int tokenType,
final int startOffset, final boolean hyperlink) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
if (nonRDFAnnotation != null) {
Enumeration<TreeNode> childEnum = nonRDFAnnotation.children();
while (childEnum.hasMoreElements()) {
XMLNode child = (XMLNode) childEnum.nextElement();
XMLAttributes atts = child.getAttributes();
- Create a ticketCreate a ticket
Method addToken
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public void addToken(final char[] array, final int start, final int end, final int tokenType,
final int startOffset, final boolean hyperlink) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
if (joinRelation.getTargetParam().equals(param.getId() + suffix)) {
addEntryToRelationMap(sourceTargetPathMap,joinRelation, param );
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
if (b2)
iter.remove();
- Create a ticketCreate a ticket
Method actionPerformed
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
@Override
public void actionPerformed(ActionEvent e) {
JFileChooser fileChooser = new JFileChooser();
fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
fileChooser.setMultiSelectionEnabled(true);
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Avoid deeply nested control flow statements. Open
if (jsonParser.nextToken() == JsonToken.START_ARRAY) {
if (jsonParser.nextToken() != JsonToken.END_ARRAY) {
return getNextParameter(jsonParser);
- Create a ticketCreate a ticket
Method saveSettingsTo
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected void saveSettingsTo(NodeSettingsWO settings) throws InvalidSettingsException {
m_readmePanel.addToHistory();
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method getViewValue
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
@Override
public JSSimulatorViewValue getViewValue() {
JSSimulatorViewValue value = super.getViewValue();
synchronized (getLock()) {
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method createExtSubModel
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public static ExternalModelDefinition createExtSubModel(SBMLDocument doc, String externalFileName,
String filePrefix, CompSBMLDocumentPlugin compDoc, CompModelPlugin compMainModel,
String subModelName) throws IOException, SBMLException, XMLStreamException {
- Create a ticketCreate a ticket