cattr-app/frontend-application

View on GitHub
app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ····
Open

        if (!model) {
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ··
Open

    }
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ··
Open

    static update(user, model) {
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ····
Open

        return model.can.update_members;
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ····
Open

        if (!model) {
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Replace ····return·hasRole(user,·'admin')·||·hasRole(user,·'manager' with return·hasRole(user,·"admin")·||·hasRole(user,·"manager"
Open

        return hasRole(user, 'admin') || hasRole(user, 'manager');
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ······
Open

            return false;
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ····
Open

        }
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ··
Open

    }
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ······
Open

            return false;
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Replace '@/utils/user' with "@/utils/user"
Open

import { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

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

        }
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ····
Open

        if (!model) {
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ····
Open

        return model.can.update;
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ··
Open

    }
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

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

            return false;
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ··
Open

    }
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ··
Open

    static create(user) {
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

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

import { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Replace ···· with ··
Open

    static updateMembers(user, model) {
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Replace ···· with ··
Open

    static delete(user, model) {
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ····
Open

        }
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

Delete ····
Open

        return model.can.destroy;
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.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 { hasRole } from '@/utils/user';
Severity: Minor
Found in app/core/policies/project.policy.js by eslint

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

There are no issues that match your filters.

Category
Status