cattr-app/frontend-application

View on GitHub
app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.js by eslint

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

Delete ····
Open

        if (projectId) {
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.js by eslint

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

Delete ··
Open

    }
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.js by eslint

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

Delete ··
Open

    return user.role.name === roleName;
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.js by eslint

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

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

export function hasRole(user, roleName) {
Severity: Minor
Found in app/core/utils/user.js by eslint

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

Replace ············return·projectRole.role.name·===·roleName·&&·projectRole.project_id·===·projectId; with ······return·(⏎········projectRole.role.name·===·roleName·&&⏎········projectRole.project_id·===·projectId
Open

            return projectRole.role.name === roleName && projectRole.project_id === projectId;
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.js by eslint

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

Insert );⏎··
Open

        }
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.js by eslint

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

Delete ····
Open

        return projectRole.role.name === roleName;
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.js by eslint

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

Delete ··
Open

    }
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.js by eslint

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

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

        return !!user.is_admin;
Severity: Minor
Found in app/core/utils/user.js by eslint

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

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

        return false;
Severity: Minor
Found in app/core/utils/user.js by eslint

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

Delete ··
Open

    return user.projects_relation.some(projectRole => {
Severity: Minor
Found in app/core/utils/user.js by eslint

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

Delete ··
Open

    });
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.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

/**
Severity: Minor
Found in app/core/utils/user.js by eslint

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

Replace ··if·(roleName·===·'admin' with if·(roleName·===·"admin"
Open

    if (roleName === 'admin') {
Severity: Minor
Found in app/core/utils/user.js by eslint

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

Replace ··if·(!user.hasOwnProperty('projects_relation' with if·(!user.hasOwnProperty("projects_relation"
Open

    if (!user.hasOwnProperty('projects_relation')) {
Severity: Minor
Found in app/core/utils/user.js by eslint

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

There are no issues that match your filters.

Category
Status