SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method getAllChoices has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public List<Map<String, Integer>> getAllChoices() {
        List<Map<String, Integer>> choices = new ArrayList<>();
        List<String> argList = new ArrayList<>(functionArguments.keySet());
        List<Integer> choice = new ArrayList<>(Collections.nCopies(
                argList.size(), 0));

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

    @Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() == selectAllButton) {
            for (int i = 0; i < selectTable.getRowCount(); i++) {
                selectTable.setValueAt(true, i, 1);

Method test has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void test() {
        // Test default values
        FskMetaData metadata = new FskMetaData();
        assertNull(metadata.modelName);

Method testModelMath has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testModelMath() {

        final GenericModelModelMath math = importer.retrieveModelMath(sheet);

Method testIndependentSetters has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testIndependentSetters() {
        final ParametricModel model = new ParametricModel();
        model.addIndepVar("indep");

Method configure has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected PortObjectSpec[] configure(final PortObjectSpec[] inSpecs)
            throws InvalidSettingsException {
        DataTableSpec inSpec = (DataTableSpec)inSpecs[0];
        if (settings.getColumn() == null) {

Method append has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void append(final PCMLDocument doc, 
            final PCMLDocument toAppend) {
        Map<String, XmlObject> newNodes = PCMLUtil.append(doc, toAppend, 
                "ProcessNode");
        // TODO: this might be automated by getting the parent of ProcessNode.

Method testConstructor2 has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testConstructor2() {

        final DepXml dep = new DepXml("dep");

Method monitor has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private REXP monitor(final Callable<REXP> task)
        throws InterruptedException, RException, CanceledExecutionException {
      final FutureTask<REXP> runningTask = new FutureTask<>(task);
      final Thread t =
          (m_useNodeContext) ? ThreadUtils.threadWithContext(runningTask, "R-Evaluation")

Method keyPressed has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void keyPressed(KeyEvent event) {

      JTextField textField = (JTextField) event.getComponent();
      String query = textField.getText();

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

    function tokenLexer(stream, state) {
        var style = state.tokenize(stream, state);
        var current = stream.current();

        // Handle '.' connected identifiers
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/vb/vb.js - About 1 hr to fix

Function blankLine has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function blankLine(state) {
    // Reset linkTitle state
    state.linkTitle = false;
    state.linkHref = false;
    state.linkText = false;

Function copy has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  State.prototype.copy = function () {
    var res = new State();
    res.javaScriptLine = this.javaScriptLine;
    res.javaScriptLineExcludesColon = this.javaScriptLineExcludesColon;
    res.javaScriptArguments = this.javaScriptArguments;
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/pug/pug.js - About 1 hr to fix

Function html has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function html(stream, state) {
      var style = htmlMode.token(stream, state.htmlState), tag = /\btag\b/.test(style), tagName
      if (tag && !/[<>\s\/]/.test(stream.current()) &&
          (tagName = state.htmlState.tagName && state.htmlState.tagName.toLowerCase()) &&
          tags.hasOwnProperty(tagName)) {

Function rval has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function rval(state,stream,type) {

    // parse stack
    pushToken(state,realToken(type,stream));

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

Function token has 26 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/turtle/turtle.js - About 1 hr to fix

Function keyframes has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    states.keyframes = function(type, stream, state) {
      if (stream.indentation() == "0" && ((type == "}" && startOfLine(stream)) || type == "]" || type == "hash"
                                          || type == "qualifier" || wordIsTag(stream.current()))) {
        return popAndPass(type, stream, state);
      }
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 atBlock has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  states.atBlock = function(type, stream, state) {
    if (type == "(") return pushContext(state, stream, "atBlock_parens");
    if (type == "}" || type == ";") return popAndPass(type, stream, state);
    if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");

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

Function token has 26 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/q/q.js - About 1 hr to fix

Function blockType has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    blockType: function(stream, state) {
      var match, type;
      state.layoutType = null;

      if (match = stream.match(RE("type")))
Severity
Category
Status
Source
Language