core/api/hooks/hooks.query.js
Function populateObjects
has 62 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
export function populateObjects (options) {
return async function (hook) {
const app = hook.app
const data = hook.data
const params = hook.params
Function populateObject
has 60 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
export function populateObject (options) {
return async function (hook) {
const app = hook.app
const data = hook.data
const params = hook.params
Avoid too many return
statements within this function. Open
Open
return hook
Avoid too many return
statements within this function. Open
Open
return hook
Avoid too many return
statements within this function. Open
Open
return hook
Avoid too many return
statements within this function. Open
Open
return hook
Avoid too many return
statements within this function. Open
Open
else return hook
Avoid too many return
statements within this function. Open
Open
return hook
Avoid too many return
statements within this function. Open
Open
else return hook
Avoid too many return
statements within this function. Open
Open
else return hook