SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function initSearch has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    BootstrapTable.prototype.initSearch = function () {
        var that = this;

        if (this.options.sidePagination !== 'server') {
            if (this.options.customSearch !== $.noop) {

Function Datepicker has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var Datepicker = function(element, options){
        $.data(element, 'datepicker', this);

        this._events = [];
        this._secondaryEvents = [];
Severity: Major
Found in de.bund.bfr.knime.js/src/js/lib/bootstrap-datepicker.js - About 2 hrs to fix

Function stack has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  d3.layout.stack = function() {
    var values = d3_identity, order = d3_layout_stackOrderDefault, offset = d3_layout_stackOffsetZero, out = d3_layout_stackOut, x = d3_layout_stackX, y = d3_layout_stackY;
    function stack(data, index) {
      var series = data.map(function(d, i) {
        return values.call(stack, d, i);

Function _mouseStart has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _mouseStart: function(event) {
        var that = this,
            options = this.options;

        this.opos = [ event.pageX, event.pageY ];

Function showInputForm has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function showInputForm()
    {
        var svgElement = document.getElementById("d3plotter").firstChild;
        var serializer = new XMLSerializer();
        

Function insert_references has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function insert_references(modelNumber) {

        function add_reference(reference_id, reference_title) {
            var row = '<tr data-id="'+ reference_id + '">' +
                      '  <td><input type="checkbox"></td>' +

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

        keydown: function( event ) {
            var preventDefault = true;
            switch ( event.keyCode ) {
                case $.ui.keyCode.TAB:
                case $.ui.keyCode.ESCAPE:

Function show has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Tooltip.prototype.show = function () {
    var e = $.Event('show.bs.' + this.type)

    if (this.hasContent() && this.enabled) {
      this.$element.trigger(e)

Method insertCondition has 17 arguments (exceeds 4 allowed). Consider refactoring.
Open

    private Integer insertCondition(Integer condId, final Integer tempId, final Integer phId, final Integer awId, final String agentName, final String matrixName,
            final String combaseId, Integer matrixId, Integer agentId, final String agentDetail, final String matrixDetail, PmmXmlDoc misc, final String comment, final Integer qs, final Boolean checked, PmmXmlDoc lit,
            PmmTimeSeries ts) {

Method addButtons has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void addButtons(int i) {
        if (addButtons.isEmpty()) {
            JButton addButton = new JButton("+");

            addButton.addActionListener(this);

Method deleteTSID has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private int deleteTSID(Connection conn, Object tsID) {
        int numDBSuccesses = 0;
        String sql = "SELECT " + DBKernel.delimitL("Referenz") + " FROM " + DBKernel.delimitL("Versuchsbedingungen")
                + " WHERE " + DBKernel.delimitL("ID") + "=" + tsID;
        ResultSet rs = DBKernel.getResultSet(conn, sql, false);

Method initGUI has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void initGUI() {
        modelNames = null;
        parameters = null;
        minValues = null;
        maxValues = null;

Method getCharge_Lieferung has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Integer[] getCharge_Lieferung(String id, String name, String street, String streetNumber, String zip, String city, String county, String country, String kind,
            String vat, String article, String articleNumber, String prodTreatment, String charge, String dayMHD, String monthMHD, String yearMHD, String dayP, String monthP,
            String yearP, String originCountry, String dayD, String monthD, String yearD, String amountKG, String typePU, String numPU, String idTo, String nameTo,
            String streetTo, String streetNumberTo, String zipTo, String cityTo, String countyTo, String countryTo, String kindTo, String vatTo, String serial, String cqr,
            String EndChain, String Explanation_EndChain, String Further_Traceback, String MicrobiologicalSample) {

Method checkPlausibleDBL has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @SuppressWarnings("unused")
    private static String checkPlausibleDBL(Object kzID, String tname, String spaltenname, Integer tableID) {
        String ergebnis = null;        
        if (kzID != null) {
            String msg = GuiMessages.getString("Wenn die Anzahl der Wiederholungen = 1 ist, dann sollte ein Einzelwert eingetragen werden! Anzahl Wiederholungen < 1 machen keinen Sinn!");
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/PlausibilityChecker.java - About 2 hrs to fix

Method saveSettingsTo has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  protected void saveSettingsTo(NodeSettingsWO settings) {

    File directory =
        NodeContext.getContext().getWorkflowManager().getContext().getCurrentLocation();

Method saveToNodeSettings has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public void saveToNodeSettings(final NodeSettingsWO settings) {

    settings.addString(Key.name.name(), template.modelName);
    settings.addString(Key.id.name(), template.modelId);
    settings.addString(Key.model_link.name(),

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

  @Override
  protected PortObject[] execute(PortObject[] inObjects, ExecutionContext exec) throws Exception {
    exec.setMessage("Reading subworkflow");
    final WorkflowContext origContext = NodeContext.getContext().getWorkflowManager().getContext();
    NodeContext nodeContext = NodeContext.getContext();

Method checkAndRegenerateSimulation has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public void checkAndRegenerateSimulation(List<FskSimulation> simulations,
      List<Parameter> originalParameters, List<Parameter> newParams) {
    List<Parameter> paramsToBeRemoved =
        (List<Parameter>) CollectionUtils.removeAll(originalParameters, newParams);
    List<Parameter> viewParams =  (List<Parameter>) CollectionUtils.removeAll(newParams, originalParameters);

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

  @Override
  protected PortObject[] execute(PortObject[] inObjects, ExecutionContext exec) throws Exception {
    exec.setMessage("Reading subworkflow");
    final WorkflowContext origContext = NodeContext.getContext().getWorkflowManager().getContext();
    NodeContext nodeContext = NodeContext.getContext();

Method loadFrom has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    void loadFrom(final InputStream is)
            throws IOException, XmlException {
        // use NonClosableInputStream to prevent multiple calling of close.
        // We do it in the next line.
        XmlObject xmlDoc = PCMLDocument.Factory.parse(
Severity
Category
Status
Source
Language