ducktors/turborepo-remote-cache

View on GitHub

Showing 2 of 6 total issues

Function createApp has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function createApp(
options: FastifyServerOptions & { configOverrides?: Partial<Config> } = {},
): FastifyInstance {
const SSL_CERT_PATH = env.get().SSL_CERT_PATH
const SSL_KEY_PATH = env.get().SSL_KEY_PATH
Severity: Major
Found in src/app.ts - About 2 hrs to fix

    Function createS3 has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    export function createS3({
    accessKey = process.env.S3_ACCESS_KEY,
    secretKey = process.env.S3_SECRET_KEY,
    bucket,
    region = process.env.S3_REGION,
    Severity: Minor
    Found in src/plugins/remote-cache/storage/s3.ts - About 25 mins to fix
    Severity
    Category
    Status
    Source
    Language