SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Method savePortObject has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        @Override
        public void savePortObject(final FskPortObject portObject, final PortObjectZipOutputStream out,
                final ExecutionMonitor exec) throws IOException, CanceledExecutionException {
            // model entry (file with model script)
            out.putNextEntry(new ZipEntry(MODEL));

Method retrieveReference has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static Reference retrieveReference(String[][] values, int row) {

      final String isReferenceDescriptionString = values[row][RakipColumn.K.ordinal()];
      final String doi = values[row][RakipColumn.O.ordinal()];

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

    @Override
    public void actionPerformed(ActionEvent e) {

      if (m_directoryEnvironmentButton.isSelected()) {

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

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

Method retrieveReference has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static Reference retrieveReference(String[][] values, int row) {

      final String isReferenceDescriptionString = values[row][RakipColumn.K.ordinal()];
      final String doi = values[row][RakipColumn.O.ordinal()];

Method retrieveReference has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static Reference retrieveReference(String[][] values, int row) {

      final String isReferenceDescriptionString = values[row][RakipColumn.K.ordinal()];
      final String doi = values[row][RakipColumn.O.ordinal()];

Method addModificationDate has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public static void addModificationDate(Model modelMetadata) {
    Date dateJavaFormat = new Date();
    LocalDate dateThreeTenFormat = Instant.ofEpochMilli(dateJavaFormat.getTime()).atZone(ZoneId.systemDefault()).toLocalDate();
    String modelType = modelMetadata.getModelType();
      if(modelType.equalsIgnoreCase( "genericModel")) {

Method saveOutputParameters has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  public void saveOutputParameters(FskPortObject fskObj, Path workingDirectory)
      throws VariableNotGlobalException, IOException {
    StringBuilder script = new StringBuilder();

Method getLiteratureItem has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static LiteratureItem getLiteratureItem(Connection conn, Integer id, String dbuuid) {
        String author = (String) DBKernel.getValue(conn, "Literatur", "ID", id
                + "", "Erstautor");
        String title = (String) DBKernel.getValue(conn, "Literatur", "ID", id
                + "", "Titel");

Method copyFilesToEnvironment has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private Optional<Path> copyFilesToEnvironment(Optional<Path> environment){
    
    List<Path> filePaths = new ArrayList<>();
    try {
      for (String filePath : files) {

Method getEnvironment has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  public Optional<Path> getEnvironment() {

    if (archivePath == null || archivePath.isEmpty())
      return Optional.empty();

Method performPaste has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void performPaste() {
        int startRow = getSelectedRows()[0];
        int startCol = getSelectedColumns()[0];
        Clipboard system = Toolkit.getDefaultToolkit().getSystemClipboard();
        String trstring = null;

Method importFlowVariables has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  public Collection<FlowVariable> importFlowVariables(String variableName) throws RException {

    checkInitialized();
    final List<FlowVariable> flowVars = new ArrayList<>();

Method testConstructors has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testConstructors() throws Exception {

        // test constructor with id, name, formula and model class
        final CatalogModelXml catalog0 = new CatalogModelXml(0, "name", "formula", 0);

Function token has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      token: function(stream, state) {
        if (stream.sol()) {
          state.indented = stream.indentation();
          state.startOfLine = true;
        }
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/haml/haml.js - About 1 hr to fix

Function tokenStringFactory has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function tokenStringFactory(delimiter, tokenOuter) {
      while ("rubf".indexOf(delimiter.charAt(0).toLowerCase()) >= 0)
        delimiter = delimiter.substr(1);

      var singleline = delimiter.length == 1;
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 atBlock has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    states.atBlock = function(type, stream, state) {
      if (type == "(") return pushContext(state, stream, "atBlock_parens");
      if (typeIsBlock(type, stream)) {
        return pushContext(state, stream, "block");
      }
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/stylus/stylus.js - About 1 hr to fix

Function constructor has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    constructor ( settings, $container, metadata, uploadDates, executionTimes  ) {
        let O = this;
        O._metadata = metadata;
        O._uploadDates = uploadDates;
        O._executionTimes = executionTimes;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.landingpage.js - About 1 hr to fix

Function _createModelMetadataContent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createModelMetadataContent() {
        let O = this;
        _log( 'MODAL DETAILS / _createModelMetadataContent' );
        // modal nav with tabs & search
        O._$modalNav = $('<div class="modal-body modal-nav"></div>')
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.mt.details.js - About 1 hr to fix

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

        _createPanels() {

            let schema = fskui.riskModel;

            return {
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/bfr/fskutil_1.0.0.js - About 1 hr to fix
Severity
Category
Status
Source
Language