SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

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

      private void myPasteFromClipboard() { 
            int row = this.getTable().getSelectedRow(); 
            int column = this.getTable().getSelectedColumn();
            if (row >= 0 && row < this.getRowCount() && column >= 0 && column < this.getColumnCount()) {
                  String pasteString = ""; 
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java - About 1 hr to fix

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

    private static String handleField(final Object id, final MyTable[] foreignFields, final String[] mnTable, final int i, final boolean goDeeper, final String startDelim,
            final String delimiter, final String endDelim, HashSet<MyTable> alreadyUsed) {
        String result = "";
        if (id == null) {
            ;
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/DBKernel.java - About 1 hr to fix

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

    private String backupNZip(String filename) {
        String result = sendRequestGetErr("BACKUP DATABASE TO '" + filename + "' BLOCKING");

        byte[] buffer = new byte[1024];
        try {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyDBI.java - About 1 hr to fix

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

  public void saveSettings(final NodeSettingsWO settings) {
    settings.addString("originalModelScript", originalModelScript);
    settings.addString("originalParametersScript", originalParametersScript);
    settings.addString("originalVisualizationScript", originalVisualizationScript);

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

  @Override
  protected void loadSettingsFrom(NodeSettingsRO settings, PortObject[] input)
      throws NotConfigurableException {

    FskPortObject inputObject = (FskPortObject) input[0];

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

  @Override
  protected PortObject[] execute(PortObject[] inObjects, ExecutionContext exec) throws Exception {
    FskPortObject outObj;

    // If there is an input model

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

  private void createUI() {
    // Build locale with the selected language in the preferences
    refreshNodes();
    String labelText = "File Name";
    String toolTipText = "File Name";

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

  public static void createAllPossibleSimulations(FskPortObject firstFskObj,
      FskPortObject secondFskObj, CombinedFskPortObject outObj) {

    int indexFirst = 0;
    int indexSecond = 0;

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

  @Override
  protected PortObject[] execute(PortObject[] inObjects, ExecutionContext exec) throws Exception {

    // Get model metadata
    FskPortObject inObj = (FskPortObject) inObjects[0];

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

  public static List<Reference> getReferenceList(String modelType, Model metadata) {
    List<Reference> references = new ArrayList<>();

    if (modelType == null)
      references = ((GenericModel) metadata).getGeneralInformation().getReference();

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

  @Override
  public void saveInputParameters(FskPortObject fskObj, Path workingDirectory) throws Exception {
    String path = workingDirectory.toString() + File.separator + JSON_FILE_NAME;
    parameterJson = new ParameterJson(new File(path));
    String modelId = SwaggerUtil.getModelId(fskObj.modelMetadata);

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

  private void createUI() {
    // Build locale with the selected language in the preferences
    refreshNodes();
    String labelText = "File Name";
    String toolTipText = "File Name";

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

  @Override
  protected void saveSettingsTo(NodeSettingsWO settings) throws InvalidSettingsException {

    m_readmePanel.addToHistory();

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

    public static void saveChartAs(JFreeChart chart, String fileName,
            int width, int height) {
        if (fileName.toLowerCase().endsWith(".png")) {
            try {
                org.jfree.chart.ChartUtilities.writeChartAsPNG(

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

    private static void findPackagedR() {

        if (!Platform.OS_WIN32.equals(Platform.getOS()))
            return;

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

    @Test
    public void testEmptyConstructor() {

        SettingsHelper helper = new SettingsHelper();
        assertTrue(helper.getSelectedIDs().isEmpty());

Function startState has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    startState: function() {
      return {
        f: blockNormal,

        prevLine: {stream: null},

Function transitState has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function transitState(currState, c) {
    var currLocation = currState.location;
    var ret;

    // Opening.

Function tokenLexer has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function tokenLexer(stream, state) {
      if (stream.sol()) state.beginningOfLine = true;

      var style = state.tokenize(stream, state);
      var current = stream.current();
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/python/python.js - About 1 hr to fix

Function tokenQuote has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function tokenQuote(end, style, embed) {
      return function (stream, state) {
        var escaped = false;

        while (stream.peek()) {
Severity
Category
Status
Source
Language