SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function option has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    option: function( key, value ) {
        var options = key,
            parts,
            curOption,
            i;

Function offsetString has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            offsetString = function(offset) {
                try {
                    return $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"),
                        offset, $.datepicker._getFormatConfig(inst));
                }

Function open has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    open: function( event ) {
        var that = this,
            target = $( event ? event.target : this.element )
                // we need closest here due to mouseover bubbling,
                // but always pointing at the same event target

Function _attachHandlers has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _attachHandlers: function(inst) {
        var stepMonths = this._get(inst, "stepMonths"),
            id = "#" + inst.id.replace( /\\\\/g, "\\" );
        inst.dpDiv.find("[data-handler]").map(function () {
            var handler = {

Function addWidget has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    addWidget: function(pos, node, scroll, vert, horiz) {
      var display = this.display
      pos = cursorCoords(this, clipPos(this.doc, pos))
      var top = pos.bottom, left = pos.left
      node.style.position = "absolute"

Function addWidget has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    addWidget: function(pos, node, scroll, vert, horiz) {
      var display = this.display
      pos = cursorCoords(this, clipPos(this.doc, pos))
      var top = pos.bottom, left = pos.left
      node.style.position = "absolute"

Function _create has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _create(title, dialog, formData) {

      // Add button
      let addButton = document.createElement("button");
      addButton.classList.add("btn", "btn-primary");

Function shouldUseNative has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function shouldUseNative() {
    try {
        if (!Object.assign) {
            return false;
        }

Function fixTableHeaders has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function fixTableHeaders(){
        var tablePopups ={};
        tablePopups["modelCategory"] = window.uischema13
        tablePopups["modificationdate"] = window.uischema14
        tablePopups["creators"] = window.uischema23

Function random has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function random(min, max, floating) {
      if (floating && isIterateeCall(min, max, floating)) {
        max = floating = undefined;
      }
      var noMin = min == null,

Function pctDecChars has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function pctDecChars(str) {
    var newStr = "";
    var i = 0;
    var il = str.length;
    while (i < il) {

Function slicedToArray has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var slicedToArray = function () {
  function sliceIterator(arr, i) {
    var _arr = [];
    var _n = true;
    var _d = false;

Function applyPlacement has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Tooltip.prototype.applyPlacement = function (offset, placement) {
    var $tip   = this.tip()
    var width  = $tip[0].offsetWidth
    var height = $tip[0].offsetHeight

Function validateConnection has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      validateConnection: function (cellViewS, magnetS, cellViewT, magnetT, end, linkView) {
        //It's not allowed to override parameters of type CONSTANT
        if($(magnetT).text().indexOf('Classification: CONSTANT') != -1){
            $(magnetT).attr( "fill","yellow" );
            return false;

Function getMetadata has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async function getMetadata() {
        if (_representation.table && _representation.table.rows && _representation.table.rows.length > 0) {
            const j = [];

            $.each(_representation.table.rows, function (index, rawdata) {

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

    public void saveSettings( final Config config ) {
        if (volume != null) {
            config.addString( PARAM_VOLUME, volume );
        }
        config.addString(PARAM_VOLUME_UNIT, volumeUnit);

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

    private void refreshCB() {
        if (cb == null) {
            cb = new JComboBox<EmReaderUi_Agent>();
            cb.setEditable(false);
            cb.setFont(new Font("Serif", Font.BOLD, 16));

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

        @Override
        public GenericModelDataBackground deserialize(JsonParser parser, DeserializationContext context)
                throws IOException, JsonProcessingException {

            JsonNode node = parser.readValueAsTree();

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

    public static String getLanguageWrittenIn(Model model) {
        String language;

        final String modelType = model.getModelType();
        if (modelType.equalsIgnoreCase("genericModel")) {

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

    public static List<Parameter> getParameter(Model model) {
        List<Parameter> parameters;

        final String modelType = model.getModelType();
        if (modelType.equalsIgnoreCase("genericModel")) {
Severity
Category
Status
Source
Language