SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function token has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    token: function(stream, state) {
      if (state.tokenize) {
        return state.tokenize(stream, state);
      }

Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/gas/gas.js - About 2 hrs to fix

Function normal has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function normal(source, state) {
      var plug;
      // Do we look like '\command' ?  If so, attempt to apply the plugin 'command'
      if (source.match(/^\\[a-zA-Z@]+/)) {
        var cmdName = source.current().slice(1);
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/stex/stex.js - About 2 hrs to fix

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

        init: function () {
            var isValueByText = false, 
                doAutotext, finalize;

            //name

Function hull has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function hull(data) {
      if (data.length < 3) return [];
      var fx = d3_functor(x), fy = d3_functor(y), n = data.length, vertices, plen = n - 1, points = [], stack = [], d, i, j, h = 0, x1, y1, x2, y2, u, v, a, sp;
      if (fx === d3_svg_lineX && y === d3_svg_lineY) vertices = data; else for (i = 0, 
      vertices = []; i < n; ++i) {

Function keydown has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        keydown: function( event ) {
            var allowed, curVal, newVal, step,
                index = $( event.target ).data( "ui-slider-handle-index" );

            switch ( event.keyCode ) {

File idl.js has 266 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/idl/idl.js - About 2 hrs to fix

File django.js has 266 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/django/django.js - About 2 hrs to fix

Method retrieveHazard has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static Hazard retrieveHazard(Row row, Map<String, Integer> columns) {
        
        // Check mandatory properties
        final Cell nameCell = row.getCell(columns.get("name"));
        if (nameCell.getCellTypeEnum() != CellType.STRING) {

Method get has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static PublicationType get(int value) {
        switch (value) {
            case NULL_VALUE: return NULL;
            case ABST_VALUE: return ABST;
            case ADVS_VALUE: return ADVS;

Method createMainComponent has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private JComponent createMainComponent() {
        Map<String, List<String>> categories = new LinkedHashMap<>();
        Map<String, String> units = new LinkedHashMap<>();
        Map<String, List<Double>> paramsX = new LinkedHashMap<>();

Method initComponents has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @SuppressWarnings("deprecation")
    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        dialogPane = new JPanel();
        contentPanel = new JPanel();

Method initCs has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void initCs() {
        componentMap = new HashMap<>();
        componentMap.put("ID", textField1);
        componentMap.put("Referenz", textField2);
        componentMap.put("Agens", textField3);
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBForm.java - About 2 hrs to fix

Method initComponents has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        ResourceBundle bundle = ResourceBundle.getBundle("org.hsh.bfr.db.gui.PanelProps");
        DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance();
        dialogPane = new JPanel();
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/About.java - About 2 hrs to fix

Method updateChangeLog has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static boolean updateChangeLog(final String tablename, final int modifiedCol, final boolean deleted, final int oSize) {
        boolean result = true;
        boolean showMessages = false;
        ResultSet rs = DBKernel.getResultSet("SELECT " + DBKernel.delimitL("ID") + "," + DBKernel.delimitL("Alteintrag") + " FROM " + DBKernel.delimitL("ChangeLog") + " WHERE "
                + DBKernel.delimitL("Tabelle") + "='" + tablename + "'", false); //  + " AND " + DBKernel.delimitL("ID") + " > 169000"
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/UpdateChecker.java - About 2 hrs to fix

Method insertTs has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public Integer insertTs(final PmmTimeSeries ts) throws PmmException {
        Integer condId = ts.getCondId();
        Double ph = ts.getPh();
        Double temp = ts.getTemperature();
        temp = convert(Categories.getTempCategory(), ts.getTemperatureUnit(), temp, "°C");

Method savePortObject has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void savePortObject(final FskPortObject portObject, final PortObjectZipOutputStream out,
        final ExecutionMonitor exec) throws IOException, CanceledExecutionException {

      // model entry (file with model script)

Method createEmptyViewRepresentation has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  public FSKEditorJSViewRepresentation createEmptyViewRepresentation() {
    FSKEditorJSViewRepresentation representation = super.getViewRepresentation();
    if (representation == null) {
      representation = new FSKEditorJSViewRepresentation();      

Method savePortObject has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        @Override
        public void savePortObject(final FskPortObject portObject, final PortObjectZipOutputStream out,
                final ExecutionMonitor exec) throws IOException, CanceledExecutionException {

            // model entry (file with model script)

Method savePortObject has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void savePortObject(final FskPortObject portObject, final PortObjectZipOutputStream out,
        final ExecutionMonitor exec) throws IOException, CanceledExecutionException {

      // model entry (file with model script)

Function token has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    token: function(stream, state) {
      state.combineTokens = null;

      // Hack to prevent formatting override inside code blocks (block and inline)
      if (state.codeBlock) {
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/gfm/gfm.js - About 2 hrs to fix
Severity
Category
Status
Source
Language