server/checks/Specification.js
Function _validateBody
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_validateBody(body, checks = {}) {
const {
[MINIMUM_LENGTH]: {
enabled: shouldCheckLength = true,
length: requiredLength = DEFAULT_REQUIRED_LENGTH