medokin/node-stupid-gso

View on GitHub

Showing 3 of 15 total issues

Function request has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function request(method, params) {

    if (!params) {
        params = {};
    }
Severity: Minor
Found in index.js - About 1 hr to fix

    Function substitutions has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    p.substitutions = function (startDate, endDate, departmentId) {
        return request('getSubstitutions', {
            startDate: startDate,
            endDate: endDate,
            departmentId: departmentId
    Severity: Minor
    Found in index.js - About 1 hr to fix

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

      p.timetable = function (id, type, startDate, endDate) {
          return request('getTimetable', {
              id: id,
              type: type,
              startDate: startDate,
      Severity: Minor
      Found in index.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language