SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function onCopyCut has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function onCopyCut(e) {
    if (signalDOMEvent(cm, e)) { return }
    if (cm.somethingSelected()) {
      setLastCopied({lineWise: false, text: cm.getSelections()})
      if (e.type == "cut") { cm.replaceSelection("", null, "cut") }

Function updateLineGutter has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function updateLineGutter(cm, lineView, lineN, dims) {
  if (lineView.gutter) {
    lineView.node.removeChild(lineView.gutter)
    lineView.gutter = null
  }

Function onCopyCut has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function onCopyCut(e) {
    if (signalDOMEvent(cm, e)) { return }
    if (cm.somethingSelected()) {
      setLastCopied({lineWise: false, text: cm.getSelections()})
      if (e.type == "cut") { cm.replaceSelection("", null, "cut") }

Function from has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            return function from(arrayLike/* , mapFn, thisArg */) {
                // 1. Let C be the this value.
                var C = this;

                // 2. Let items be ToObject(arrayLike).

Method getNewConc has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

    private Double getNewConc(ValueAndUnit vau, PredictionValues pv, ParametersSetting ps, Double tempVal, Double phVal, Double awVal, Double presVal, double t, String timeUnit, Double lastConc, double stepWidth) {

Method setTS has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public void setTS(String agent, String agentDetail, Integer agentID, String matrix, String matrixDetail, Integer matrixID,
            String comment, double temperature, String tempUnit, double ph, double aw) throws PmmException {

Method openNewWindow has 11 arguments (exceeds 4 allowed). Consider refactoring.
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, Filter mf, Component parent,
            String level1Expansion) {
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/MainFrame.java - About 1 hr to fix

Method getInverseFunctionSamplePoints has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public double[][] getInverseFunctionSamplePoints(String paramX,
            String paramY, String unitX, String unitY, String transformX,
            String transformY, double minX, double maxX, double minY,
            double maxY, List<String> warnings) throws ConvertException {

Method getFunctionSamplePointsErrors has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public double[][] getFunctionSamplePointsErrors(String paramX,
            String paramY, String unitX, String unitY, String transformX,
            String transformY, double minX, double maxX, double minY,
            double maxY, Map<String, Integer> choice) throws ConvertException {

Method getFunctionSamplePoints has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public double[][] getFunctionSamplePoints(String paramX, String paramY,
            String unitX, String unitY, String transformX, String transformY,
            double minX, double maxX, double minY, double maxY,
            List<String> warnings) throws ConvertException {

Method getFunctionPoints has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public double[][] getFunctionPoints(String paramX, String paramY,
            String unitX, String unitY, String transformX, String transformY,
            double minX, double maxX, double minY, double maxY,
            Map<String, Integer> choice) throws ConvertException {

Method getFunctionErrors has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public double[][] getFunctionErrors(String paramX, String paramY,
            String unitX, String unitY, String transformX, String transformY,
            double minX, double maxX, double minY, double maxY,
            Map<String, Integer> choice) throws ConvertException {

Method getTimeSeriesTuples has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public Map<String, KnimeTuple> getTimeSeriesTuples(File file, String sheet, Map<String, Object> columnMappings,
            String timeUnit, String concentrationUnit, String agentColumnName, Map<String, AgentXml> agentMappings,
            String matrixColumnName, Map<String, MatrixXml> matrixMappings, boolean preserveIds, List<Integer> usedIds)

Method setIndependentVariableData has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  void setIndependentVariableData() {

    List<VariableData> variables = new LinkedList<>();

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

    @Override
    protected BufferedDataTable[] execute(final BufferedDataTable[] inData, final ExecutionContext exec)
            throws Exception {
        Bfrdb db = null;
        /*

Method readModelTable has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void readModelTable() {
        models = new ArrayList<>();
        modelNames = new LinkedHashMap<>();
        modelFormulas = new LinkedHashMap<>();
        dependentVariables = new LinkedHashMap<>();

Method cellValueChanged has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public Object cellValueChanged(int row, int col, Object oldValue, Object newValue) {
        //System.out.println(row + "\t" + col + "\t" + oldValue + "\t" + newValue);
        try {
            if (theTable.getMyCellPropertiesModel() instanceof MyCellPropertiesModel) {
                if (theTable.getColumn(col-1).getColumnName().equals("Geprueft") && oldValue == null && newValue != null && 

Method button8ActionPerformed has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void button8ActionPerformed(ActionEvent e) {
        //myDBTable1.myPrint();
          String tt = "";
          tt += "ID\t" + GuiMessages.getString("Benutzer") + "\t" + GuiMessages.getString("Letzte Aenderung") + "\n"; 
          tt += "-----------------------------\n\n"; 
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBPanel.java - About 1 hr to fix

Method checkeDoppeltVergebeneDKZs has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void checkeDoppeltVergebeneDKZs(final Statement anfrage) {
        System.err.println("checkeDoppeltVergebeneDKZs - Start");
        LinkedHashMap<String, MyTable> myTables = DBKernel.myDBi.getAllTables();
        Hashtable<Integer, String> hash = new Hashtable<>();
        for(String key : myTables.keySet()) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MergeDBsAPriori.java - About 1 hr to fix

Method loadOther4Gui has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void loadOther4Gui() {
        // knownCodeSysteme
        knownCodeSysteme = new LinkedHashMap<>();
          // TOP
          knownCodeSysteme.put("Agenzien_TOP", new int[]{2,4}); // 
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyDBTablesNew.java - About 1 hr to fix
Severity
Category
Status
Source
Language