SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Method savePortObject has 30 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 createUI has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private void createUI() {

            final FPanel simulationPanel = new FPanel();
            simulationPanel.setLayout(new BorderLayout());
            final JScrollPane parametersPane = new JScrollPane(

Method addIdentifierToParametersForCombinedObject has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public static void addIdentifierToParametersForCombinedObject(FskPortObject portObject,
      String suffix, int suffixInsertionIndex,
      final Map<String, List<String>> unModifiedParamsNames,
      Map<String, Map<String, String>> old_new_pramsMap)
      throws JsonMappingException, JsonProcessingException {

Method buildNode has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private void buildNode(DefaultMutableTreeNode node, FskPortObject portObject, int nodeType) {

    String modelId = StringUtils.defaultIfEmpty(SwaggerUtil.getModelName(portObject.modelMetadata),
        "Missing name");

Method createTableChartComponent has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private JComponent createTableChartComponent(List<TimeSeriesXml> timeSeries) {
        List<Double> timeList = new ArrayList<>();
        List<Double> logcList = new ArrayList<>();
        String timeUnit = Categories.getTimeCategory().getStandardUnit();
        String concentrationUnit = Categories.getConcentrationCategories()

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

    @Test
    public void testConstructors() {

        // Test empty constructor
        final AgentXml agent0 = new AgentXml(Type.MD);

Method createResourcesPanel has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static JPanel createResourcesPanel(final Component parent, final DefaultListModel<Path> listModel) {
        JList<Path> list = new JList<>(listModel);
        list.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
        list.setLayoutOrientation(JList.VERTICAL);

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

    @Test
    public void testConstructors() {

        // Empty constructor
        final MatrixXml matrix0 = new MatrixXml(MatrixXml.Type.MD);

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

    @Test
    public void testConstructors() {

        // Empty constructor
        final MatrixXml matrix0 = new MatrixXml();

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

    @Test
    public void testConstructors() {

        // Test empty constructor
        final AgentXml agent0 = new AgentXml();

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

      token: function(stream, state) {
        var ctx = state.context;
        if (stream.sol()) {
          if (ctx.align == null) ctx.align = false;
          state.indented = stream.indentation();
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/ttcn/ttcn.js - About 1 hr to fix

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

      token: function(stream, state) {
        var ctx = state.context;
        if (stream.sol()) {
          if (ctx.align == null) ctx.align = false;
          state.indented = stream.indentation();

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

    token: function(stream, state) {
      curPunc = null;
      if (stream.sol()) state.indented = stream.indentation();
      var style = state.tokenize[state.tokenize.length-1](stream, state), kwtype;
      var thisTok = curPunc;
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/ruby/ruby.js - About 1 hr to fix

Function tokenString has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      function tokenString(stream, state) {
        while (!stream.eol()) {
          stream.eatWhile(/[^'"\{\}\\]/);
          if (stream.eat("\\")) {
            stream.next();
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 tokenBase has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var tokenBase = function(stream/*, state*/) {
      var ch = stream.next();
      if (ch ==='"') {
        stream.match(/.*?"/);
        return "string";
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/cypher/cypher.js - About 1 hr to fix

Function base has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function base(stream, state) {
    if (stream.eatSpace()) {type = "ws"; return null;}
    if (stream.match(numLiteral)) return "number";
    var ch = stream.next();
    if (ch == "\\") ch = stream.next();

Function findFatArrow has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function findFatArrow(stream, state) {
    if (state.fatArrowAt) state.fatArrowAt = null;
    var arrow = stream.string.indexOf("=>", stream.start);
    if (arrow < 0) return;

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

    token: function(stream, state) {
      if (stream.sol()) {
        if (state.context && state.context.align == null) state.context.align = false;
        state.indent = stream.indentation();
      }
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/sparql/sparql.js - About 1 hr to fix

Function createRe has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    createRe: function(name) {
      switch (name) {
      case "drawTable":
        return REs.makeRe("^", REs.single.drawTable, "$");
      case "html":

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

      token: function(stream, state) {
        var ctx = state.context;
        if (stream.sol()) {
          if (ctx.align == null) ctx.align = false;
          state.indented = stream.indentation();
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/asn.1/asn.1.js - About 1 hr to fix
Severity
Category
Status
Source
Language