FredericHeem/starhackit

View on GitHub
mobile/src/core/rest.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function default has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function(options = {}) {
  let _jwtSelector;

  function ajax(url, method, data, params) {
    console.log(
Severity: Major
Found in mobile/src/core/rest.js - About 2 hrs to fix

    Function ajax has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function ajax(url, method, data, params) {
        console.log(
          `ajax url: ${baseUrl(url)}, method: ${method}, data ${JSON.stringify(
            data
          )}, params: ${JSON.stringify(params)}`
    Severity: Minor
    Found in mobile/src/core/rest.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status