mijailr/terraform-cloud

View on GitHub

Showing 2 of 13 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create(organizationName: string, request: WorkspaceRequest): Promise<Workspace> {
const path = `/organizations/${organizationName}/workspaces`
return this.post<Workspace, WorkspaceRequest>(path, request)
}
Severity: Major
Found in src/api/endpoints/Workspaces.ts and 1 other location - About 1 hr to fix
src/api/endpoints/StateVersions.ts on lines 10..13

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create(workspaceId: string, request: StateVersionRequest): Promise<StateVersion> {
const path = `/workspaces/${workspaceId}/state-versions`
return this.post<StateVersion, StateVersionRequest>(path, request)
}
Severity: Major
Found in src/api/endpoints/StateVersions.ts and 1 other location - About 1 hr to fix
src/api/endpoints/Workspaces.ts on lines 20..23
Severity
Category
Status
Source
Language