SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function d3_transitionNode has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_transitionNode(node, i, id, inherit) {
    var lock = node.__transition__ || (node.__transition__ = {
      active: 0,
      count: 0
    }), transition = lock[id];

Function scale has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var effectScale = $.effects.effect.scale = function( o, done ) {

    // Create element
    var el = $( this ),
        options = $.extend( true, {}, o ),

Function fromTextArea has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function fromTextArea(textarea, options) {
  options = options ? copyObj(options) : {}
  options.value = textarea.value
  if (!options.tabindex && textarea.tabIndex)
    { options.tabindex = textarea.tabIndex }

Function makeChangeSingleDocInEditor has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function makeChangeSingleDocInEditor(cm, change, spans) {
  var doc = cm.doc, display = cm.display, from = change.from, to = change.to

  var recomputeMaxLength = false, checkWidthStart = from.line
  if (!cm.options.lineWrapping) {

Function fromTextArea has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function fromTextArea(textarea, options) {
  options = options ? copyObj(options) : {}
  options.value = textarea.value
  if (!options.tabindex && textarea.tabIndex)
    { options.tabindex = textarea.tabIndex }

Function makeChangeSingleDocInEditor has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function makeChangeSingleDocInEditor(cm, change, spans) {
  var doc = cm.doc, display = cm.display, from = change.from, to = change.to

  var recomputeMaxLength = false, checkWidthStart = from.line
  if (!cm.options.lineWrapping) {

Function exports has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function (data, opts) {
    if (!opts) opts = {};
    if (typeof opts === 'function') opts = { cmp: opts };
    var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;

Function trunc has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function trunc(string, options, guard) {
      if (guard && isIterateeCall(string, options, guard)) {
        options = undefined;
      }
      var length = DEFAULT_TRUNC_LENGTH,

Function selectRow has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                selectRow       : ( O, rowIndex, rowData ) => {
                            
                            if(O.selectAllClicked){
                                    this.checked = true;
                                    $(this).closest("tr").css("background-color", "#e1e3e8");

Method convertArrays2ParamXmlDoc has 15 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public static PmmXmlDoc convertArrays2ParamXmlDoc(LinkedHashMap<String, String> varMap, Array name,
            Array value, Array timeUnit, Array categories, Array units, Array error, Array min, Array max, Array desc, Array paramType, Array P, Array t, Integer modelId, Integer emid) {

Method retrieveProduct has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static Product retrieveProduct(Row row, Map<String, Integer> columns) {

        // Check first mandatory properties
        if (row.getCell(columns.get("name")).getCellTypeEnum() != CellType.STRING) {
            throw new IllegalArgumentException("Missing product name");

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

    @Override
    protected PortObject[] execute(PortObject[] inObjects, ExecutionContext exec)
            throws Exception {
        BufferedDataTable table = (BufferedDataTable) inObjects[0];
        TableReader reader = new TableReader(table);

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

  public void actionPerformed(ActionEvent e) {
      String lastOutDir = DBKernel.prefs.get("LAST_OUTPUT_DIR", "");
      JFileChooser fc = new JFileChooser(lastOutDir);
//      if (!DBKernel.isKrise) fc.addChoosableFileFilter(new LieferkettenImporterNew());      
      fc.addChoosableFileFilter(new MyProzessXMLImporter());
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/actions/ImportAction.java - About 1 hr to fix

Method doRestore has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static boolean doRestore(final MyDBTable myDB, final File scriptFile, final boolean silent, boolean doReconnect) {
        boolean result = true;
        if (scriptFile != null && scriptFile.exists()) {
            if (!silent) {
                int returnVal = JOptionPane.showConfirmDialog(DBKernel.mainFrame,
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/BackupMyDBI.java - About 1 hr to fix

Method createSedml has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private static SEDMLDocument createSedml(FskPortObject portObj) {

    SEDMLDocument doc = Libsedml.createDocument();
    SedML sedml = doc.getSedMLModel();

Method performExecuteCreatePortObjects has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  protected PortObject[] performExecuteCreatePortObjects(PortObject svgImageFromView,
      PortObject[] inObjects, ExecutionContext exec) throws Exception {

    CombinedFskPortObject outObj = new CombinedFskPortObject(Optional.empty(), new ArrayList<>(),

Method createSimulation has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private void createSimulation(FskPortObject inObj, JSSimulatorViewValue val) {

    if (inObj instanceof CombinedFskPortObject) {
      final List<Parameter> inputParams = getViewRepresentation().parameters;
      createSimulation(((CombinedFskPortObject) inObj).getFirstFskPortObject(), val);

Method runFskPortObject has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public FskPortObject runFskPortObject(FskPortObject fskObj,
      FskSimulation combinedSim,
      ExecutionContext exec,
      List<JoinRelationAdvanced> joinRelationList,
      String suffix) throws Exception {

Method createSedml has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private static SEDMLDocument createSedml(FskPortObject portObj) {

    SEDMLDocument doc = Libsedml.createDocument();
    SedML sedml = doc.getSedMLModel();

Method createSedml has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private static SEDMLDocument createSedml(FskPortObject portObj, ScriptHandler scriptHandler) {

    SEDMLDocument doc = Libsedml.createDocument();
    SedML sedml = doc.getSedMLModel();

Severity
Category
Status
Source
Language