SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function validateConnection has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      validateConnection: function (cellViewS, magnetS, cellViewT, magnetT, end, linkView) {
       
        var links = _graph.getLinks();
        for (var i = 0; i < links.length; i++)
        {  

Function init has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  view.init = function (representation, value) {

    _representation = representation;
    _value = value;

Function 26 has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],26:[function(require,module,exports){
'use strict';

//all requires must be explicit because browserify won't work with dynamic requires
module.exports = {

Function serialize$$1 has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    serialize: function serialize$$1(mailtoComponents, options) {
        var components = mailtoComponents;
        var to = toArray(mailtoComponents.to);
        if (to) {
            for (var x = 0, xl = to.length; x < xl; ++x) {

Function show has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Tab.prototype.show = function () {
    var $this    = this.element
    var $ul      = $this.closest('ul:not(.dropdown-menu)')
    var selector = $this.data('target')

Function dateUpdated has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        dateUpdated: function(e){
            // `this.updating` is a workaround for preventing infinite recursion
            // between `changeDate` triggering and `setUTCDate` calling.  Until
            // there is a better mechanism.
            if (this.updating)

Method getSetting has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public AgentsSetting getSetting() throws InvalidSettingsException {        
        AgentsSetting as;

        as = new AgentsSetting();
        

Method convertAssay has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static Assay convertAssay(JsonNode node) {

        Assay assay = new Assay();

        if (node.has("assayName")) {

Method eIsSet has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public boolean eIsSet(int featureID) {
        switch (featureID) {
            case MetadataPackage.POPULATION_GROUP__POPULATION_NAME:
                return POPULATION_NAME_EDEFAULT == null ? populationName != null : !POPULATION_NAME_EDEFAULT.equals(populationName);

Method eGet has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public Object eGet(int featureID, boolean resolve, boolean coreType) {
        switch (featureID) {
            case MetadataPackage.POPULATION_GROUP__POPULATION_NAME:
                return getPopulationName();

Method getInvalidIds has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Map<String, String> getInvalidIds(List<String> selectedIDs)
            throws ConvertException {
        Map<String, String> invalid = new LinkedHashMap<>();
        Set<String> nonVariables = new LinkedHashSet<>();

Method getValueAt has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public Object getValueAt(int rowIndex, int columnIndex) {
            if (thePM == null) return null;
            if (rowIndex == 0) {
                DepXml dx = thePM.getDepXml();
                if (columnIndex < 2) return thePM.getDepVar();

Method getColumnClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        @Override
        public Class<?> getColumnClass(int columnIndex) {
            switch (columnIndex) {
            case 0:
                return String.class;

Method getWhere has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private String getWhere() {
        String result = " WHERE TRUE";

        if (agentID > 0) result += " AND \"Agens\" = " + agentID;
        if (agentString != null && !agentString.trim().isEmpty()) {

Method saveSettings has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void saveSettings(NodeSettingsWO settings) {
        settings.addString(CFG_SELECTEDID, selectedID);
        settings.addString(CFG_CURRENTPARAMX, currentParamX);
        settings.addString(CFG_SELECTEDVALUESX,
                XmlConverter.objectToXml(selectedValuesX));

Method readPrimaryTable has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void readPrimaryTable(BufferedDataTable table) {
        modelNames = new LinkedHashMap<>();
        parameters = new LinkedHashMap<>();
        minValues = new LinkedHashMap<>();
        maxValues = new LinkedHashMap<>();

Method copyKennzahlen has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void copyKennzahlen(final MyTable myT, final Integer oldID, final Integer newID, final Integer toRow) throws Exception {
        MyTable[] foreignFields = myT.getForeignFields();
        if (foreignFields != null) {
            for (int i=0; i<foreignFields.length; i++) {
                if (foreignFields[i] != null && foreignFields[i].getTablename().equals("DoubleKennzahlen")) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java - About 1 hr to fix

Method isCellEditable has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public boolean isCellEditable(EventObject anEvent) {
      if (anEvent == null) { // null wird übergeben bei selectCell(row, column) in der Funktion setSelectedRowCol in MyDBTable
          return false;
      }
      else {

Method deleteRow has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    void deleteRow() {
        String tablename = this.getActualTable().getTablename();
        int selRow = this.getSelectedRow();
        if (!this.actualTable.isReadOnly() && this.getRowCount() > 0 && selRow >= 0 && selRow < this.getRowCount()) {
            int id = this.getSelectedID();
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java - About 1 hr to fix

Method paintComponent has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  public void paintComponent( Graphics g ) {
      MyTable myT = myDBTable1.getActualTable();
          if (myDBTable1 != null && myT != null) {
              button1.setEnabled(!myT.isReadOnly());
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBPanel.java - About 1 hr to fix
Severity
Category
Status
Source
Language