Showing 5 of 5 total issues
Function send
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default async function send(
action: Action,
connection: Connection | null,
): Promise<Response> {
if (!connection || connection.status !== 'ok' || !connection.redisClient) {
Function listen
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default async function listen(
dispatch: Dispatch,
connection: Connection | null,
authenticate: AuthenticateExternal,
): Promise<Response> {
Function sendGet
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
client: ReturnType<typeof createClient>,
generateId: GenerateId,
id?: string | string[],
pattern?: string,
onlyIds = false,
Function sendSet
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
client: ReturnType<typeof createClient>,
generateId: GenerateId,
id: string | string[] | null | undefined,
data: unknown,
concurrency = 1
Function getCollection
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
client: ReturnType<typeof createClient>,
generateId: GenerateId,
concurrency: number,
onlyIds: boolean,
pattern?: string,