ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/oldjs/services/post_service.js

Summary

Maintainability
A
35 mins
Test Coverage

Showing 7 of 7 total issues

Function saveRecord has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function saveRecord(apiURL, redirectURL, object, successMsg, action) {
Severity: Minor
Found in app/javascript/oldjs/services/post_service.js - About 35 mins to fix

Expected property shorthand.
Open

action: action,

Too many blank lines at the end of file. Max of 0 allowed.
Open

Expected property shorthand.
Open

miqFlashLater({ message: message });

Expected the Promise rejection reason to be an Error.
Open

return Promise.reject({

Unexpected string concatenation.
Open

message: __(response.error.klass) + ': ' + __(response.error.message),

Expected to return a value at the end of function 'handleErrors'.
Open

function handleErrors(response) {
Category
Status