Showing 6,856 of 14,752 total issues
Consider simplifying this complex logical expression. Open
Open
if (carverID >= 1 && carverID <= 31 || carverID == 332 ||
carverID >= 217 && carverID <= 220 ||
carverID >= 295 && carverID <= 307 ||
carverID >= 338 && carverID <= 340) result = true; // Material
else if (carverID >= 280 && carverID <= 290 || carverID == 342) result = true; // Verpackung
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (names != null && units != null && types != null && mins != null && maxs != null
&& names.length == units.length && names.length == types.length
&& names.length == mins.length && names.length == maxs.length) {
for (int i = 0; i < names.length; i++) {
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if ((current == 0x9) ||
(current == 0xA) ||
(current == 0xD) ||
((current >= 0x20) && (current <= 0xD7FF)) ||
((current >= 0xE000) && (current <= 0xFFFD)) ||
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (ltr) {
topLeft = docLTR && openStart && first ? leftSide : fromPos.left;
topRight = docLTR ? rightSide : wrapX(from, dir, "before");
botLeft = docLTR ? leftSide : wrapX(to, dir, "after");
botRight = docLTR && openEnd && last ? rightSide : toPos.right;
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (cm.options.dragDrop && dragAndDrop && !cm.isReadOnly() &&
repeat == "single" && (contained = sel.contains(pos)) > -1 &&
(cmp((contained = sel.ranges[contained]).from(), pos) < 0 || pos.xRel > 0) &&
(cmp(contained.to(), pos) > 0 || pos.xRel < 0))
{ leftButtonStartDrag(cm, event, pos, behavior); }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if ( _isUndefined( value )
|| _isNull( value )
|| typeof value == 'object' && Object.keys( value ).length === 0 && value.constructor === Object
|| typeof value == 'object' && value.length == 1 && _isNull( value[0] )
|| value.length <= 0 ) {
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (this.floating && horizontalDirection) {
return ((horizontalDirection === "right" && isOverRightHalf) || (horizontalDirection === "left" && !isOverRightHalf));
} else {
return verticalDirection && ((verticalDirection === "down" && isOverBottomHalf) || (verticalDirection === "up" && !isOverBottomHalf));
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if ( ( ( $target[0].id !== $.datepicker._mainDivId &&
$target.parents("#" + $.datepicker._mainDivId).length === 0 &&
!$target.hasClass($.datepicker.markerClassName) &&
!$target.closest("." + $.datepicker._triggerClass).length &&
$.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if(!(/^(document|window|parent)$/).test(o.containment)) {
ce = $(o.containment)[0];
co = $(o.containment).offset();
over = ($(ce).css("overflow") !== "hidden");
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (cm.options.dragDrop && dragAndDrop && !cm.isReadOnly() &&
repeat == "single" && (contained = sel.contains(pos)) > -1 &&
(cmp((contained = sel.ranges[contained]).from(), pos) < 0 || pos.xRel > 0) &&
(cmp(contained.to(), pos) > 0 || pos.xRel < 0))
{ leftButtonStartDrag(cm, event, pos, behavior) }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (ltr) {
topLeft = docLTR && openStart && first ? leftSide : fromPos.left
topRight = docLTR ? rightSide : wrapX(from, dir, "before")
botLeft = docLTR ? leftSide : wrapX(to, dir, "after")
botRight = docLTR && openEnd && last ? rightSide : toPos.right
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (cm.options.dragDrop && dragAndDrop && !cm.isReadOnly() &&
repeat == "single" && (contained = sel.contains(pos)) > -1 &&
(cmp((contained = sel.ranges[contained]).from(), pos) < 0 || pos.xRel > 0) &&
(cmp(contained.to(), pos) > 0 || pos.xRel < 0))
{ leftButtonStartDrag(cm, event, pos, behavior) }
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (ltr) {
topLeft = docLTR && openStart && first ? leftSide : fromPos.left
topRight = docLTR ? rightSide : wrapX(from, dir, "before")
botLeft = docLTR ? leftSide : wrapX(to, dir, "after")
botRight = docLTR && openEnd && last ? rightSide : toPos.right
- Create a ticketCreate a ticket
Method convertContact
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static Contact convertContact(JsonNode node) {
Contact contact = new Contact();
if (node.has("title")) {
contact.setTitle(node.get("title").asText());
- Create a ticketCreate a ticket
Method saveSettingsTo
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
protected void saveSettingsTo(NodeSettingsWO settings)
throws InvalidSettingsException {
if (!selectionPanel.getSelectedIDs().isEmpty()) {
set.setSelectedID(selectionPanel.getSelectedIDs().get(0));
- Create a ticketCreate a ticket
Method insertData
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void insertData(final int condId, final int timeId, final int lognId, String timeUnit, String concUnit, String concUnitObjectType) {
try {
PreparedStatement ps = conn.prepareStatement("INSERT INTO \"Messwerte\" (\"" + REL_CONDITION + "\", \"" + ATT_TIME + "\", \"ZeitEinheit\", \"" + ATT_LOG10N
+ "\", \"Konz_Einheit\" )VALUES(?, ?, ?, ?, ?)");
ps.setInt(1, condId);
- Create a ticketCreate a ticket
Method updateDialog
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void updateDialog(ModelType modelType, String readmeFile,
EnvironmentManager environment) {
modelTypeComboBoxModel.setSelectedItem(modelType);
m_readmePanel.setSelectedFile(readmeFile);
clearEnvironmentPanel();
- Create a ticketCreate a ticket
Method createUI
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void createUI() {
// Model type panel
final JPanel modelTypePanel = new JPanel(new BorderLayout());
modelTypePanel.setBorder(
- Create a ticketCreate a ticket
Method loadJsonSetting
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void loadJsonSetting() throws IOException, CanceledExecutionException {
File directory =
NodeContext.getContext().getWorkflowManager().getContext().getCurrentLocation();
String name = NodeContext.getContext().getNodeContainer().getName();
- Create a ticketCreate a ticket
Method fixNullPortsToDefault
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private PortObject[] fixNullPortsToDefault(PortObject[] inObjects) throws IOException {
PortObject[] inPorts =
Arrays.stream(inObjects).filter(s -> (s != null)).toArray(PortObject[]::new);
inputModelNumber = inPorts.length;
switch (inputModelNumber) {
- Create a ticketCreate a ticket