SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

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

    public Hazard retrieveHazard(Row row) {
        // Check mandatory properties
        if (row.getCell(X).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Hazard name is missing");
        }

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

    public Hazard retrieveHazard(Row row) {
        // Check mandatory properties
        if (row.getCell(X).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Hazard name is missing");
        }

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

    public Hazard retrieveHazard(Row row) {
        // Check mandatory properties
        if (row.getCell(X).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Hazard name is missing");
        }

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

    public Hazard retrieveHazard(Row row) {
        // Check mandatory properties
        if (row.getCell(W).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Hazard name is missing");
        }

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

    public Hazard retrieveHazard(Row row) {
        // Check mandatory properties
        if (row.getCell(W).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Hazard name is missing");
        }

Method createMainComponent has 58 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 copyDetails has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void copyDetails(final MyTable myT, final Integer oldID, final Integer id) {
        try {
            String tablename = myT.getTablename();
            copyKennzahlen(myT, oldID, id);
            
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java - About 2 hrs to fix

Method addBindings has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void addBindings() {
        InputMap inputMap = toolBar1.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
        ActionMap actionMap = toolBar1.getActionMap();

        inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_F, InputEvent.CTRL_DOWN_MASK), "CTRL+F");
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/MainFrame.java - About 2 hrs to fix

Method createUI has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private void createUI() {

    // Fields
    resolutionField.setColumns(5);
    resolutionField.setHorizontalAlignment(SwingConstants.RIGHT);

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

  @Override
  protected PortObject[] execute(PortObject[] inObjects, ExecutionContext exec) throws Exception {
    exec.checkCanceled();
    FskPortObject fskObj = (FskPortObject) inObjects[0];

Method createUI has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private void createUI() {

    // Fields
    resolutionField.setColumns(5);
    resolutionField.setHorizontalAlignment(SwingConstants.RIGHT);

Method getFunctionPoints has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public double[][] getFunctionPoints(String paramX, String paramY,
            String unitX, String unitY, String transformX, String transformY,
            double minX, double maxX, double minY, double maxY,
            Map<String, Integer> choice) throws ConvertException {
        if (function == null) {

Method createDoc has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private PCMLDocument createDoc() {
        PCMLDocument pcmlDoc = PCMLUtil.create();
        PCML pcml = pcmlDoc.getPCML();
        ProcessChain pChain = pcml.addNewProcessChain();
        // create a new process node

Method testConstructors has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testConstructors() {

        // Test constructor with id, name, sse, rms, r2, aic, bic, dof
        final EstModelXml model0 = new EstModelXml(0, "name", .0, .0, .0, .0, .0, 1);

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

  function tokenBase(stream, state) {

    var ch = stream.next();
    if (ch == "/" && stream.eat("*")) {
      state.tokenize = tokenCComment;
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/sieve/sieve.js - About 2 hrs to fix

Function produceTokenFunction has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function produceTokenFunction(pConfig) {

    return function(pStream, pState) {
      if (pStream.match(wordRegexp(pConfig.brackets), true, true)) {
        return "bracket";
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/mscgen/mscgen.js - About 2 hrs to fix

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

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

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

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

    token: function (stream, state) {
      if (state.indentStack == null && stream.sol()) {
        // update indentation, but only if indentStack is empty
        state.indentation = 6 ; //stream.indentation();
      }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/cobol/cobol.js - About 2 hrs to fix

Function _populateSimForm has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _populateSimForm () {
        let O = this;
        _log( 'PANEL SIM / _populateSimForm' );

        // clear
Severity: Major
Found in de.bund.bfr.knime.js/src/js/app/app.simulation.js - About 2 hrs to fix

Function reset has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Defaults.prototype.reset = function () {
    function stripDiacritics (text) {
      // Used 'uni range + named function' from http://jsperf.com/diacritics/18
      function match(a) {
        return DIACRITICS[a] || a;
Severity: Major
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 2 hrs to fix
Severity
Category
Status
Source
Language