SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function runMode has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function runMode(cm, text, mode, context, f, lineClasses, forceToEnd) {
  var flattenSpans = mode.flattenSpans
  if (flattenSpans == null) { flattenSpans = cm.options.flattenSpans }
  var curStart = 0, curStyle = null
  var stream = new StringStream(text, cm.options.tabSize, context), style

Function nodeAndOffsetInLineMap has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function nodeAndOffsetInLineMap(map, ch, bias) {
  var node, start, end, collapse, mStart, mEnd
  // First, search the line map for the text node corresponding to,
  // or closest to, the target character.
  for (var i = 0; i < map.length; i += 3) {

Function resolveIds has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function resolveIds(schema) {
  var schemaId = normalizeId(this._getId(schema));
  var baseIds = {'': schemaId};
  var fullPaths = {'': getFullPath(schemaId, false)};
  var localRefs = {};

Function baseIsMatch has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function baseIsMatch(object, matchData, customizer) {
      var index = matchData.length,
          length = index,
          noCustomizer = !customizer;

Function getComponentValue has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  view.getComponentValue = () => {
    _metadata = _modalDetails._modelHandler.metaData;
    delete _metadata['simulation'];
    delete _metadata['modelscript'];
    delete _metadata['visualization'];

Function init has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  view.init = function (representation, value) {
    knimeService.setSelectedRows('b800db46-4e25-4f77-bcc6-db0c21Global' , [{"editorAvailable":true}],{elements:[]})
    _genericModelReference = JSON.parse(representation.genericModelReference);
    _value = value;
    _graphObject = JSON.parse(_value.jsonRepresentation)

Method createProject has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private IProject createProject(final IPath workflowPath) throws CoreException {
        IProgressMonitor monitor = new NullProgressMonitor();
        
         IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
            IResource resource = root.findMember(workflowPath);

Method convertStudySample has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static StudySample convertStudySample(JsonNode node) {

        StudySample sample = new StudySample();

        if (node.has("sampleName")) {

Method toString has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public String toString() {
        if (eIsProxy()) return super.toString();

        StringBuffer result = new StringBuffer(super.toString());

Method toString has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public String toString() {
        if (eIsProxy()) return super.toString();

        StringBuffer result = new StringBuffer(super.toString());

Method toString has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public String toString() {
        if (eIsProxy()) return super.toString();

        StringBuffer result = new StringBuffer(super.toString());

Method setMetadata has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  void setMetadata() {
    ResultComponent rc = doc.getResultComponent();

    // Creator

Method setFromXmlString has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void setFromXmlString(final String xmlString) {
        try {
            PmmXmlDoc doc = new PmmXmlDoc(xmlString);
            // fetch model set
            ParametricModel theModel = null;

Method parse has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private static ManualTertiaryModel parse(List<KnimeTuple> tupleList, boolean isPMFX, String mdName,
                int modelNum, Metadata metadata, String notes) {

            final String modelExtension = isPMFX ? "pmf" : "sbml";

Method init has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private void init(Point loc, Dimension siz, String inhalt, boolean keyDispose, Dimension dim, Font font, boolean modal) {
        try {
            this.inhalt = inhalt;
            this.setResizable(false);
            this.setSize(dim);
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/InfoBox.java - About 1 hr to fix

Method check4Updates_170_171 has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void check4Updates_170_171() {
        boolean isBios = false;
        if (isBios) {
            new GeneralXLSImporter(true).doImport("/org/hsh/bfr/db/res/Einheiten_130902.xls", null, false);
            DBKernel.sendRequest("DELETE FROM " + DBKernel.delimitL("Einheiten") + " WHERE " + DBKernel.delimitL("ID") + "=102", false);
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 1 hr to fix

Method dbBackup has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static boolean dbBackup(final JFrame frame) {
        String lastOutDir = DBKernel.prefs.get("LAST_OUTPUT_DIR", "");
        JFileChooser fc = new JFileChooser(lastOutDir);
        BackupMyDBI bkp = new BackupMyDBI();
        fc.setFileFilter(bkp);
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/BackupMyDBI.java - About 1 hr to fix

Method dbBackup has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static void dbBackup(final JFrame frame, final File backupFile, final boolean silent) {
        if (backupFile != null && backupFile.getParentFile().exists()) {
            try {
                if (backupFile.exists()) backupFile.delete();
                System.gc();
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/BackupMyDBI.java - About 1 hr to fix

Method handleForeignKey has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Integer handleForeignKey(Integer foreignID, MyTable foreignTable, final Statement anfrage, boolean forceNewEntry) {
          Integer cid = convertID(foreignTable.getTablename(), foreignID);
        if (cid != null) return cid;
        Integer result = null;
        ResultSet rs1 = DBKernel.getResultSet(anfrage, "SELECT * FROM " + DBKernel.delimitL(foreignTable.getTablename()) + " WHERE " + DBKernel.delimitL("ID") + "=" + foreignID, false);
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MergeDBsAPriori.java - About 1 hr to fix

Method okButtonActionPerformed has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void okButtonActionPerformed(ActionEvent e) {
        String dbt = dbPath.getText();
        boolean isServer = DBKernel.isHsqlServer(dbt);
        if (!isServer && !dbt.endsWith(System.getProperty("file.separator"))) {
            dbt += System.getProperty("file.separator");
Severity
Category
Status
Source
Language