RocketChat/Rocket.Chat

View on GitHub
apps/meteor/packages/linkedin-oauth/linkedin-server.js

Summary

Maintainability
A
1 hr
Test Coverage

Function getTokenResponse has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const getTokenResponse = async function (query) {
    const config = await ServiceConfiguration.configurations.findOneAsync({ service: 'linkedin' });
    if (!config) throw new Accounts.ConfigError('Service not configured');

    let responseContent;
Severity: Minor
Found in apps/meteor/packages/linkedin-oauth/linkedin-server.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status