cBioPortal/clinical-timeline

View on GitHub
js/parser.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function clinicalTimelineParser has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var clinicalTimelineParser = (function() {
  function transformToTimelineJSON(clinical_timeline_data) {
    var transformToTrack = function(clin_events) {
      var track = {
        "label":transformLabel(clin_events[0].eventType),
Severity: Minor
Found in js/parser.js - About 1 hr to fix

    Function transformToTimelineJSON has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function transformToTimelineJSON(clinical_timeline_data) {
        var transformToTrack = function(clin_events) {
          var track = {
            "label":transformLabel(clin_events[0].eventType),
            visible:true,
    Severity: Minor
    Found in js/parser.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status