SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function offApi has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var offApi = function(events, name, callback, options) {
    if (!events) return;

    var i = 0, listening;
    var context = options.context, listeners = options.listeners;

Function addSuffixToParameters has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  let addSuffixToParameters = function (_modelcolection) {
    switch (_modelcolection.length) {
      case 1:
        $.each(_modelcolection[0].modelMath.parameter, function (_index, param) {
          param.id = param.id + "1";

Method passesFilter has 13 arguments (exceeds 4 allowed). Consider refactoring.
Open

            final int level,
            final int qualityMode,
            final double qualityThresh,
            final String matrixString,
            final String agentString,

Method updateEstModel has 13 arguments (exceeds 4 allowed). Consider refactoring.
Open

    private void updateEstModel(final int estModelId, String name, final int condId, final int modelId, final double rms, final double rsquared, final double aic,
            final double bic, final int responseId, Integer qualityScore, Boolean isChecked, Integer workflowID, String comment) {

Method getValueX has 13 arguments (exceeds 4 allowed). Consider refactoring.
Open

    private Double getValueX(String paramX, String paramY, String unitX,
            String unitY, String transformX, String transformY, Double y,
            double minX, double maxX, Double minY, Double maxY, DJep parser,
            Node f) {

Method retrieveBackground has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private GenericModelDataBackground retrieveBackground(Sheet sheet) {
        final GenericModelDataBackground background = new GenericModelDataBackground();

        try {
            final Study study = retrieveStudy(sheet);

Method execute has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected BufferedDataTable[] execute(final BufferedDataTable[] inData, final ExecutionContext exec)
            throws Exception {
        XLSReader xlsReader = new XLSReader();
        List<KnimeTuple> tuples = new ArrayList<>(xlsReader

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

    public void saveSettings(NodeSettingsWO settings) {
        settings.addString(CFG_SELECTEDIDS,
                XmlConverter.objectToXml(selectedIDs));
        settings.addString(CFG_PARAMXVALUES,
                XmlConverter.objectToXml(paramXValues));

Method execute has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected PortObject[] execute(PortObject[] inObjects, ExecutionContext exec)
            throws Exception {
        DataTable table = (DataTable) inObjects[0];
        TableReader reader;

Method getColumnName has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        @Override
        public String getColumnName(int column) {
            switch (column) {
            case 0:
                return "ID";

Method createPanel has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public JComponent createPanel(String assignments) {
        Map<Integer, Map<String, String>> assignmentsMap = XmlConverter
                .xmlToObject(assignments,
                        new LinkedHashMap<Integer, Map<String, String>>());

Method saveValue has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void saveValue(final PreparedStatement ps, final int index, final String tfText, final JTextField tf_exp, final JCheckBox cb, final boolean isString) {
        try {
            boolean hasExponent = (tf_exp != null);
            if (tfText.trim().length() > 0) {
                if (isString) {

Method look4ParentNode has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private DefaultMutableTreeNode look4ParentNode(final LinkedHashMap<String, DefaultMutableTreeNode> myCodes, final String code, final int[] cutSystem) {
        DefaultMutableTreeNode result = null;
        String key;
        if (cutSystem == null) {
            for (int i=code.length()-1;i>=0;i--) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtree/MyDBTreeModel.java - About 1 hr to fix

Method readDB has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void readDB(final LinkedHashMap<String, DefaultMutableTreeNode> myCodes, final int codeSystemNum, final DefaultMutableTreeNode root, final String sql, final String tablename_codeSystem, int[] cutSystem) {
        myIDs[codeSystemNum].clear(); myCodes.clear();
        try {
              ResultSet rs = DBKernel.getResultSet(sql, false);
              if (rs.first()) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtree/MyDBTreeModel.java - About 1 hr to fix

Method execute has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected PortObject[] execute(PortObject[] inObjects, ExecutionContext exec) throws Exception {
        exec.checkCanceled();
        FskPortObject fskObj = (FskPortObject) inObjects[0];

Method insertIntoChangeLog has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private boolean insertIntoChangeLog(final String tablename, final Object[] rowBefore, final Object[] rowAfter, final boolean suppressWarnings) {
        if (MainKernel.dontLog || DBKernel.dontLog) return true;
        else {
            boolean diff = different(rowBefore, rowAfter);
            if (!diff) return true;
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyTrigger.java - About 1 hr to fix

Method addResourcesToArchive has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private static void addResourcesToArchive(List<Path> resources, CombineArchive archive,
      String filePrefix, Map<String, URI> uris, ScriptHandler scriptHandler) throws Exception {
    for (final Path resourcePath : resources) {

      final String filenameString = filePrefix + resourcePath.getFileName().toString();

Method actionPerformed has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() == manualRangeBox) {
            if (manualRangeBox.isSelected()) {
                minXField.setEnabled(true);

Method applyColumnSelection has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void applyColumnSelection(List<String> visibleColumns) {
        List<String> columns = new ArrayList<>();

        columns.addAll(Arrays.asList(COLOR, SHAPE, DATA, FORMULA, PARAMETERS,
                VARIABLES));

Method testConvertParameter has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testConvertParameter() {

        Parameter param;
        {
Severity
Category
Status
Source
Language