xcv58/Custom-JavaScript-for-Websites-2

View on GitHub
src/js/stores/AppStore.tsx

Summary

Maintainability
C
7 hrs
Test Coverage

AppStore has 26 functions (exceeds 20 allowed). Consider refactoring.
Open

export default class AppStore {
  store: Store

  constructor (store) {
    makeObservable(this, {
Severity: Minor
Found in src/js/stores/AppStore.tsx - About 3 hrs to fix

    File AppStore.tsx has 269 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { action, computed, observable, makeObservable } from 'mobx'
    import { encodeSource, decodeSource, getHosts, setHosts } from 'libs'
    import isEqual from 'lodash.isequal'
    import sizeof from 'object-sizeof'
    import { js } from 'js-beautify'
    Severity: Minor
    Found in src/js/stores/AppStore.tsx - About 2 hrs to fix

      Function constructor has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        constructor (store) {
          makeObservable(this, {
            mode: observable,
            loading: observable,
            autoSaveHandle: observable,
      Severity: Minor
      Found in src/js/stores/AppStore.tsx - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status