RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/lib/server/functions/validateCustomFields.js

Summary

Maintainability
A
1 hr
Test Coverage

Function validateCustomFields has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const validateCustomFields = function (fields) {
    // Special Case:
    // If an admin didn't set any custom fields there's nothing to validate against so consider any customFields valid
    if (trim(settings.get('Accounts_CustomFields')) === '') {
        return;
Severity: Minor
Found in apps/meteor/app/lib/server/functions/validateCustomFields.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status