mysociety/alaveteli

View on GitHub

Comparing develop to 4085-collapsable-correspondence

Last commit 7ea1117a 6 days ago
Compare on GitHub

Function setUpCorrespondenceCollapsing has 75 lines of code (exceeds 25 allowed). Consider refactoring.
New

var setUpCorrespondenceCollapsing = function(){
  $('.js-collapsable').each(function(){
    var $collapsable = $(this);
    var $triggers = $(this).find('.js-collapsable-trigger');
    var $correspondenceHeader = $(this).find('.correspondence__header');
Severity: Major
Found in app/assets/javascripts/correspondence-collapse.js - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status
    FileMaintainabilityTest Coverage
    app/assets/javascripts/correspondence-collapse.js
    A
    3 hrs