app/react/edge/components/EdgeScriptForm/scripts.ts
Function buildWindowsSwarmCommand
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function buildWindowsSwarmCommand(
agentVersion: string,
edgeKey: string,
properties: ScriptFormValues,
useAsyncMode: boolean,
Function buildLinuxSwarmCommand
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function buildLinuxSwarmCommand(
agentVersion: string,
edgeKey: string,
properties: ScriptFormValues,
useAsyncMode: boolean,
Function buildWindowsSwarmCommand
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
agentVersion: string,
edgeKey: string,
properties: ScriptFormValues,
useAsyncMode: boolean,
edgeId?: string,
Function buildLinuxKubernetesCommand
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
agentVersion: string,
edgeKey: string,
properties: ScriptFormValues,
useAsyncMode: boolean,
edgeId?: string,
Function buildLinuxSwarmCommand
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
agentVersion: string,
edgeKey: string,
properties: ScriptFormValues,
useAsyncMode: boolean,
edgeId?: string,
Function buildWindowsStandaloneCommand
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
agentVersion: string,
edgeKey: string,
properties: ScriptFormValues,
useAsyncMode: boolean,
edgeId?: string,
Function buildLinuxStandaloneCommand
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
agentVersion: string,
edgeKey: string,
properties: ScriptFormValues,
useAsyncMode: boolean,
edgeId?: string,
Function buildDefaultDockerEnvVars
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
edgeKey: string,
allowSelfSignedCerts: boolean,
edgeId = '$PORTAINER_EDGE_ID',
agentSecret = '',
useAsyncMode = false