Showing 14,752 of 14,752 total issues
Method runSnippet
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static void runSnippet(final RController controller, final ScriptExecutor executor,
final String modelScript, final String paramScript, final String vizScript,
final ExecutionMonitor monitor, final File imageFile, final RunnerNodeSettings settings)
- Create a ticketCreate a ticket
Method plot
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static void plot(final File imageFile, final String vizScript, final int width,
final int height, final int pointSize, final String res, final ScriptExecutor executor,
final ExecutionMonitor monitor)
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (ListOfPaths != null && ListOfPaths.size() > 1) {
String firstelement = ListOfPaths.get(ListOfPaths.size() % 2);
// classify the pathes into two groups, each belongs to sub model
List<String> firstGroup = ListOfPaths.stream().filter(line -> line.startsWith(firstelement))
.collect(Collectors.toList());
- Create a ticketCreate a ticket
Method plot
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static void plot(final File imageFile, final String vizScript, final int width, final int height,
final int pointSize, final String res, final ScriptExecutor executor, final ExecutionMonitor monitor)
- Create a ticketCreate a ticket
Method generateJoinerRelationAdvanced
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static List<JoinRelationAdvanced> generateJoinerRelationAdvanced(FskPortObject portObject,
LinkedHashMap<String, Object[]> originalNamesMap, List<Parameter> topLevelJoinedModelParams, List<JoinRelation> joinRelations,
AtomicInteger index, List<JoinRelationAdvanced> joinRelationList, LinkedHashMap<String, String> ModelsToSuffixMap, List<JoinRelation> foundRelation) {
- Create a ticketCreate a ticket
Method plotFunctionSample
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private void plotFunctionSample(XYPlot plot, Plotable plotable, String id,
Color defaultColor, Shape defaultShape, double minX, double maxX,
List<String> warnings) throws ConvertException {
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
} else if (el.getName().equals(ELEMENT_PARAM)) {
boolean minNull = el.getAttributeValue(ATT_MINVALUE) == null
|| el.getAttributeValue(ATT_MINVALUE).equals("null");
boolean maxNull = el.getAttributeValue(ATT_MAXVALUE) == null
|| el.getAttributeValue(ATT_MAXVALUE).equals("null");
- Create a ticketCreate a ticket
Method createChart
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private JFreeChart createChart(DataTableSpec spec, List<DataRow> rowList, DataTable table,
List<String> usedParameters, String xUnits, boolean equidistantProcesses, boolean plotLines, boolean plotPoints) {
- Create a ticketCreate a ticket
Method convertArrays2IndepXmlDoc
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static PmmXmlDoc convertArrays2IndepXmlDoc(LinkedHashMap<String, String> varMap, Array name, Array min, Array max, Array categories, Array units, Array desc, boolean isPrimary) {
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (stream.match('fB') || stream.match('fR') || stream.match('fI') ||
stream.match('u') || stream.match('d') ||
stream.match('%') || stream.match('&')) {
return 'string';
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (stream.indentation() == "0" && ((type == "}" && startOfLine(stream)) || type == "]" || type == "hash"
|| type == "qualifier" || wordIsTag(stream.current()))) {
return popAndPass(type, stream, state);
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (stream.match(realLiteral) ||
stream.match(decimalLiteral) ||
stream.match(binaryLiteral) ||
stream.match(octLiteral) ||
stream.match(hexLiteral) ||
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if ( textAfter === ']' || textAfter === ')' || textAfter === "end" ||
textAfter === "else" || textAfter === "catch" || textAfter === "elseif" ||
textAfter === "finally" ) {
delta = -1;
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (endsAfter || span.from == endCh && marker.type == "bookmark" && (!isInsert || span.marker.insertLeft)) {
var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= endCh : span.from < endCh)
;(nw || (nw = [])).push(new MarkedSpan(marker, startsBefore ? null : span.from - endCh,
span.to == null ? null : span.to - endCh));
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (!update.force &&
update.visible.from >= display.viewFrom && update.visible.to <= display.viewTo &&
(display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo) &&
display.renderedView == display.view && countDirtyView(cm) == 0)
{ return false }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (startsBefore || span.from == startCh && marker.type == "bookmark" && (!isInsert || !span.marker.insertLeft)) {
var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= startCh : span.to > startCh)
;(nw || (nw = [])).push(new MarkedSpan(marker, span.from, endsAfter ? null : span.to));
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (sp.marker.collapsed && (sp.from == null || sp.from < ch) && (sp.to == null || sp.to > ch) &&
(!found || compareCollapsedMarkers(found, sp.marker) < 0)) { found = sp.marker; }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if ((hist.lastOp == opId ||
hist.lastOrigin == change.origin && change.origin &&
((change.origin.charAt(0) == "+" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||
change.origin.charAt(0) == "*")) &&
(cur = lastChangeEvent(hist, hist.lastOp == opId))) {
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (options && options.values && options.values.length) {
config.from = val[0] && options.values.indexOf(val[0]);
config.to = val[1] && options.values.indexOf(val[1]);
} else {
config.from = val[0] && +val[0];
- Create a ticketCreate a ticket
Function insert
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function insert(n, d, x, y, x1, y1, x2, y2) {
- Create a ticketCreate a ticket