fratzinger/feathers-utils

View on GitHub
src/hooks/from-client-for-server/paramsForServer.ts

Summary

Maintainability
A
2 hrs
Test Coverage
A
92%

Function defineParamsForServer has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function defineParamsForServer(keyToHide: string) {
  return function paramsForServer(...whitelist: string[]) {
    return <H extends HookContext>(context: H) => {
      // clone params on demand
      let clonedParams;
Severity: Minor
Found in src/hooks/from-client-for-server/paramsForServer.ts - About 1 hr to fix

    Function paramsForServer has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      return function paramsForServer(...whitelist: string[]) {
        return <H extends HookContext>(context: H) => {
          // clone params on demand
          let clonedParams;
    
    
    Severity: Minor
    Found in src/hooks/from-client-for-server/paramsForServer.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status