wikimedia/eventmetrics

View on GitHub

Showing 2 of 5 total issues

Function getLocaleDatePattern has 218 lines of code (exceeds 80 allowed). Consider refactoring.
Open

eventmetrics.dateLocales.getLocaleDatePattern = function () {
    var defaultFormat = 'YYYY-MM-DD';

    if (!window.navigator.language) {
        return defaultFormat;
Severity: Major
Found in app/Resources/assets/js/dateLocales.js - About 6 hrs to fix

    Event has 53 functions (exceeds 40 allowed). Consider refactoring.
    Open

    class Event
    {
        /**
         * Available metrics type, hard-coded here for accessibility,
         * while the logic to compute these stats lives in EventProcessor.
    Severity: Major
    Found in src/AppBundle/Model/Event.php - About 4 hrs to fix
      Severity
      Category
      Status
      Source
      Language