SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function parseRows has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    dsv.parseRows = function(text, f) {
      var EOL = {}, EOF = {}, rows = [], N = text.length, I = 0, n = 0, t, eol;
      function token() {
        if (I >= N) return EOF;
        if (eol) return eol = false, EOL;

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

     modelPlotter.init = function(representation, value,headless) {
        
        // view-bug - require js prevents global variable behavior         
        if (!window.functionPlot) {
            if(!headless){

Function name has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn[ name ] = function( options ) {
        var isMethodCall = typeof options === "string",
            args = widget_slice.call( arguments, 1 ),
            returnValue = this;

Function refresh has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    refresh: function() {
        var menus, items,
            that = this,
            icon = this.options.icons.submenu,
            submenus = this.element.find( this.options.menus );

Function _drawMenu has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _drawMenu: function() {
        var that = this;

        // Create menu
        this.menu = $( "<ul>", {

Function showPrimarySelection has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

ContentEditableInput.prototype.showPrimarySelection = function () {
  var sel = window.getSelection(), cm = this.cm, prim = cm.doc.sel.primary()
  var from = prim.from(), to = prim.to()

  if (cm.display.viewTo == cm.display.viewFrom || from.line >= cm.display.viewTo || to.line < cm.display.viewFrom) {

Function showPrimarySelection has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

ContentEditableInput.prototype.showPrimarySelection = function () {
  var sel = window.getSelection(), cm = this.cm, prim = cm.doc.sel.primary()
  var from = prim.from(), to = prim.to()

  if (cm.display.viewTo == cm.display.viewFrom || from.line >= cm.display.viewTo || to.line < cm.display.viewFrom) {

Function start has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    start: function(options) {
      if (History.started) throw new Error('Backbone.history has already been started');
      History.started = true;

      // Figure out the initial configuration. Do we need an iframe?

Method retrieveContact has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing mail");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveContact has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing mail");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveContact has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing mail");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveContact has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing mail");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveContact has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing mail");

Method retrieveContact has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing mail");

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");
Severity
Category
Status
Source
Language