cattr-app/frontend-application

View on GitHub
app/core/plugins/gate.js

Summary

Maintainability
A
0 mins
Test Coverage

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········return·Store.state['policies']['policies' with ····return·Store.state["policies"]["policies"
Open

        return Store.state['policies']['policies'][type][action](this.user, model);
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    /**
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        this.user = user;
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    allow(action, type, model = null) {
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ············ with ······
Open

            throw new Error(`Cannot find policy ${type}`);
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ····
Open

        }
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    /**
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace '@/store' with "@/store"
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    auth(user) {
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    }
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    /**
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ···· with ··
Open

    }
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'vue/attributes-order' was not found
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
Open

import Store from '@/store';
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ····if·(!Store.state['policies']['policies' with if·(!Store.state["policies"]["policies"
Open

        if (!Store.state['policies']['policies'][type]) {
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    }
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········Object.defineProperty(Vue.prototype,·'$can' with ····Object.defineProperty(Vue.prototype,·"$can"
Open

        Object.defineProperty(Vue.prototype, '$can', {
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ······}, with }
Open

            },
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ··}, with }
Open

    },
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ····Object.defineProperty(Vue.prototype,·'$gate' with Object.defineProperty(Vue.prototype,·"$gate"
Open

        Object.defineProperty(Vue.prototype, '$gate', {
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ····
Open

        });
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ····
Open

        Vue.prototype._gate = new Gate();
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ················ with ········
Open

                return this.$gate.allow.bind(this.$gate);
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ····
Open

        });
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    install(Vue) {
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ······}, with }
Open

            },
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ··
Open

    deny(action, type, model = null) {
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ····
Open

        return !this.allow(action, type, model);
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ············ with ······
Open

            get() {
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ················ with ········
Open

                return Vue.prototype._gate;
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ············ with ······
Open

            get() {
Severity: Minor
Found in app/core/plugins/gate.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status