SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function _destroy has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _destroy: function() {
        if ( this.xhr ) {
            this.xhr.abort();
        }

Function measureCharInner has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function measureCharInner(cm, prepared, ch, bias) {
  var place = nodeAndOffsetInLineMap(prepared.map, ch, bias)
  var node = place.node, start = place.start, end = place.end, collapse = place.collapse

  var rect

Function measureCharInner has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function measureCharInner(cm, prepared, ch, bias) {
  var place = nodeAndOffsetInLineMap(prepared.map, ch, bias)
  var node = place.node, start = place.start, end = place.end, collapse = place.collapse

  var rect

Function showTabs has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    TabCollapse.prototype.showTabs = function(){
        var view = this;
        this.$tabs.trigger($.Event('show-tabs.bs.tabcollapse'));

        var $panelHeadings = this.$accordion.find('.js-tabcollapse-panel-heading').detach();

Method convertHazard has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static Hazard convertHazard(JsonNode node) {
        Hazard hazard = new Hazard();

        if (node.has("hazardType")) {
            hazard.setType(node.get("hazardType").asText());

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

        @Override
        public void actionPerformed(ActionEvent e) {
            if (e.getSource() == okButton) {
                for (Object value : mappings.values()) {
                    if (value == null) {

Method createChart has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void createChart() {
        String id = null;

        if (configPanel.isDisplayFocusedRow()) {
            id = selectionPanel.getFocusedID();

Method manageDBMinMax has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void manageDBMinMax(ResultSet result, ParametricModel pm) throws SQLException {
        Array array = result.getArray(Bfrdb.ATT_PARAMNAME);
        Array arrayMin = result.getArray(Bfrdb.ATT_MINVALUE);
        Array arrayMax = result.getArray(Bfrdb.ATT_MAXVALUE);
        Array arrayCat = result.getArray("ParCategory");

Method showAndFilterVals has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private boolean showAndFilterVals(String tablename, LinkedHashMap<String[], LinkedHashSet<String[]>> vals, int idColumn,
            int lfd, int total) {
        int i=0;
        Integer lastShownID = -1;
        for (String[] p : vals.keySet()) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/actions/PlausibleAction.java - About 1 hr to fix

Method managePs has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private boolean managePs(PreparedStatement ps) throws SQLException {
        boolean allNullVals = true;
        String[] fieldTypes = myT.getFieldTypes();
        String[] fieldNames = myT.getFieldNames();
        MyTable[] fieldFields = myT.getForeignFields();
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java - About 1 hr to fix

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

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

    FskPortObject portObject = (FskPortObject) inData[0];

Method launchRserve has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static RInstance launchRserve(final String command, final String host, final Integer port)
            throws IOException {
        // if debugging, launch debug version of Rserve.
        final String cmd = (DEBUG_RSERVE && Platform.isWindows()) ? command.replace(".exe", "_d.exe") : command;

Method createChangeLists has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private List<List<Integer>> createChangeLists() {
            int n = arguments.length;
            boolean done = false;
            List<List<Integer>> changeLists = new ArrayList<>();
            List<Integer> list = new ArrayList<>(Collections.nCopies(n, -1));

Method convertStringLists2TSXmlDoc has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static PmmXmlDoc convertStringLists2TSXmlDoc(Array t, Array tu, Array l, Array lu, Array lot, Array stddevs, Array wdhs, String modelUnit, String timeUnit) {
        PmmXmlDoc tsDoc = new PmmXmlDoc();
        if (t != null) {
            try {
                Object[] toksT = (Object[])t.getArray();

Method checkCairoOnMac has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private void checkCairoOnMac() throws RException {

    if (cairoFound && quartzFound) {
      return;
    }

Function readToken has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function readToken(stream, state) {
  // whitespace
  if (stream.eatSpace()) return null;

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

Function token has 44 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 tokenBase has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function tokenBase(stream, state) {
    var ch = stream.next();

    // is a start of string?
    if (ch == '"' || ch == "'")
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/pig/pig.js - About 1 hr to fix

Function Select2 has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var Select2 = function ($element, options) {
    if ($element.data('select2') != null) {
      $element.data('select2').destroy();
    }

Function histogram has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  d3.layout.histogram = function() {
    var frequency = true, valuer = Number, ranger = d3_layout_histogramRange, binner = d3_layout_histogramBinSturges;
    function histogram(data, i) {
      var bins = [], values = data.map(valuer, this), range = ranger.call(this, values, i), thresholds = binner.call(this, range, values, i), bin, i = -1, n = values.length, m = thresholds.length - 1, k = frequency ? 1 : 1 / n, x;
      while (++i < m) {
Severity
Category
Status
Source
Language