SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

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 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)

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

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

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

      if (ch == '"' || ch == "'") {
        state.tokenize = tokenString(ch);
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/ttcn/ttcn.js - About 2 hrs to fix

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

  function tokenBase(stream, state) {
    var ch;

    // get next character
    ch = stream.next();
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/yacas/yacas.js - About 2 hrs to fix

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

    function clipLine(listener) {
      var point0, c0, v0, v00, clean;
      return {
        lineStart: function() {
          v00 = v0 = false;

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

  function d3_scale_log(linear, base, positive, domain) {
    function log(x) {
      return (positive ? Math.log(x < 0 ? 0 : x) : -Math.log(x > 0 ? 0 : -x)) / Math.log(base);
    }
    function pow(x) {

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

    drag: function( event, ui, inst ) {

        var ts, bs, ls, rs, l, r, t, b, i, first,
            o = inst.options,
            d = o.snapTolerance,

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

    function change_parameters(name) {
        $("#formula, #boundary_conditions").change(function() {
            if($("#formula").val() === ''){
                $("#formula").val($("#formula").data('value'));
                $("#boundary_conditions").val($("#boundary_conditions").data('value'));

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

var effectExplode = $.effects.effect.explode = function( o, done ) {

    var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3,
        cells = rows,
        el = $( this ),
Severity
Category
Status
Source
Language