swagger-api/swagger-editor

View on GitHub
src/plugins/local-storage/index.js

Summary

Maintainability
A
1 hr
Test Coverage

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

export default function(system) {
  // setTimeout runs on the next tick
  setTimeout(() => {
    if(localStorage.getItem(CONTENT_KEY)) {
      system.specActions.updateSpec(localStorage.getItem(CONTENT_KEY), "local-storage")
Severity: Minor
Found in src/plugins/local-storage/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status