Showing 6,856 of 14,752 total issues
Consider simplifying this complex logical expression. Open
Open
if (this.contextMenuPending || !cm.state.focused ||
(hasSelection(input) && !prevInput && !this.composing) ||
cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq)
{ return false }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
} else if ((((support.nCharCast && (ch == "n" || ch == "N"))
|| (support.charsetCast && ch == "_" && stream.match(/[a-z][a-z0-9]*/i)))
&& (stream.peek() == "'" || stream.peek() == '"'))) {
// charset casting: _utf8'str', N'str', n'str'
// ref: http://dev.mysql.com/doc/refman/5.5/en/string-literals.html
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (context.line >= cm.display.viewFrom) { // Visible
var oldStyles = line.styles;
var resetState = line.text.length > cm.options.maxHighlightLength ? copyState(doc.mode, context.state) : null;
var highlighted = highlightLine(cm, line, context, true);
if (resetState) { context.state = resetState; }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to &&
(sp.to == null || sp.to != span.from) &&
(sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
lineIsHiddenInner(doc, line, sp)) { return true }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to &&
(sp.to == null || sp.to != span.from) &&
(sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
lineIsHiddenInner(doc, line, sp)) { return true }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (context.line >= cm.display.viewFrom) { // Visible
var oldStyles = line.styles
var resetState = line.text.length > cm.options.maxHighlightLength ? copyState(doc.mode, context.state) : null
var highlighted = highlightLine(cm, line, context, true)
if (resetState) { context.state = resetState }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (this.contextMenuPending || !cm.state.focused ||
(hasSelection(input) && !prevInput && !this.composing) ||
cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq)
{ return false }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (this.contextMenuPending || !cm.state.focused ||
(hasSelection(input) && !prevInput && !this.composing) ||
cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq)
{ return false }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to &&
(sp.to == null || sp.to != span.from) &&
(sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
lineIsHiddenInner(doc, line, sp)) { return true }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (context.line >= cm.display.viewFrom) { // Visible
var oldStyles = line.styles
var resetState = line.text.length > cm.options.maxHighlightLength ? copyState(doc.mode, context.state) : null
var highlighted = highlightLine(cm, line, context, true)
if (resetState) { context.state = resetState }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if ((value < other && !valIsNull) || !othIsReflexive ||
(othIsNull && !valIsUndef && valIsReflexive) ||
(othIsUndef && valIsReflexive)) {
return -1;
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if ((value > other && !othIsNull) || !valIsReflexive ||
(valIsNull && !othIsUndef && othIsReflexive) ||
(valIsUndef && othIsReflexive)) {
return 1;
}
- Create a ticketCreate a ticket
Method parseString
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void parseString(final XYSeries series, final String function, final String interval, final Double mini, final Double maxi, final double stepi) {
Function func = getFunction(function);
Double min = null, max = null;
double step = 1;
- Create a ticketCreate a ticket
Method loadWorkflowManager2
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void loadWorkflowManager2(final Connection conn, final int pcId)
throws Exception {
String projectName = "PC_" + System.currentTimeMillis();
Object pn = DBKernel.getValue("ProzessWorkflow", "ID", pcId+"", "Name");
- Create a ticketCreate a ticket
Method eUnset
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void eUnset(int featureID) {
switch (featureID) {
case MetadataPackage.STUDY_SAMPLE__SAMPLE_NAME:
setSampleName(SAMPLE_NAME_EDEFAULT);
- Create a ticketCreate a ticket
Method eSet
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case MetadataPackage.STUDY_SAMPLE__SAMPLE_NAME:
setSampleName((String)newValue);
- Create a ticketCreate a ticket
Method finalizePM
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private ParametricModel finalizePM(int lastSelIndex) {
ParametricModel pm = table.getPM();
if (table.hasChanged()) {
if (pm != null && pm.modelName.equals(modelnameField.getText())) {
modelnameField.setText(getNewModelname(pm));
- Create a ticketCreate a ticket
Method saveSettings
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void saveSettings(NodeSettingsWO settings) {
settings.addString(CFG_SELECTEDID, selectedID);
settings.addString(CFG_CURRENTPARAMX, currentParamX);
settings.addString(CFG_PARAMXVALUES,
XmlConverter.objectToXml(paramXValues));
- Create a ticketCreate a ticket
Method parse
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static TwoStepSecondaryModel parse(List<KnimeTuple> tuples, boolean isPMFX, int modelNum, String mdName,
Metadata metadata, String notes) {
/**
* <ol>
* <li>Create n SBMLDocument for primary models</li>
- Create a ticketCreate a ticket
Method write
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void write(List<KnimeTuple> tuples, boolean isPMFX, String dir, String mdName, Metadata metadata,
boolean splitModels, String notes, ExecutionContext exec, ModelType modelType) throws Exception {
Parser parser;
- Create a ticketCreate a ticket