Showing 6,856 of 14,752 total issues
Consider simplifying this complex logical expression. Open
Open
if ((!showOnlyDataFromCurrentUser || v != null && v.containsKey(id)) &&
(id1 < 0 && id2 < 0 || id >= id1 && id <= id2)) {
String toAdd = tn2 + " (ID=" + getFormattedID(id) + "): ";
if (tblname != null) {
toAdd += tblname + " (ID=" + getFormattedID(rs.getInt(2)) + "): ";
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (headerValue != null && mnTable != null && col != null && col > 0 && col - 1 < mnTable.length && mnTable[col - 1] != null && mnTable[col - 1].length() > 0) { // headerValue.toString().equals("Kits")
if (!mnTable[col - 1].equals("INT")) {
String mntname = mnTable[col - 1];
MyTable myMNTable = DBKernel.myDBi.getTable(mntname);
String tname = myT.getTablename();
- Create a ticketCreate a ticket
Method openNewWindow
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Object openNewWindow(final MyTable theNewTable, final Object value, final Object headerValue, final MyDBTable dbTable, final Integer row, final Integer col, final Object[][] conditions, boolean fromMMC) {
- Create a ticketCreate a ticket
Method insertParam
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private int insertParam(final int modelId, final String paramName, final int paramType, final Double min, final Double max, final String category, final String unit,
final String description) {
- Create a ticketCreate a ticket
Method insertEstParam
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private void insertEstParam(final int estModelId, final int paramId, final Double value, final Double paramErr, String unit, ParametricModel pm, boolean isDepIndep,
String paramName) {
- Create a ticketCreate a ticket
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