SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

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()) {

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

  NativeScrollbars.prototype.update = function (measure) {
    var needsH = measure.scrollWidth > measure.clientWidth + 1;
    var needsV = measure.scrollHeight > measure.clientHeight + 1;
    var sWidth = measure.nativeBarWidth;

Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

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

  function skipAtomicInner(doc, pos, oldPos, dir, mayClear) {
    var line = getLine(doc, pos.line);
    if (line.markedSpans) { for (var i = 0; i < line.markedSpans.length; ++i) {
      var sp = line.markedSpans[i], m = sp.marker;

Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

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

    _createPanels() {
        let port = window.port || -1;
        let schema = schemas.riskModel;

        return {
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.schemas.js - About 1 hr to fix

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

    _createParamMetadataList( param ) {
        let O = this;
        _log( 'PANEL SIM / _createParamMetadataList' );

        let listData = {
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.simulation.js - About 1 hr to fix
Severity
Category
Status
Source
Language