Skip to content

spec: single-process-single-worker - #664

Open
filafb wants to merge 1 commit into
masterfrom
spec/single-process-single-worker
Open

spec: single-process-single-worker#664
filafb wants to merge 1 commit into
masterfrom
spec/single-process-single-worker

spec: single-process-single-worker

7932f19
Select commit
Loading
Failed to load commit list.
Sonar - Workflows / SonarQube Code Analysis failed Jun 16, 2026 in 29s

Quality Gate failed

Failed Quality Gate failed

  • 315 New Issues (is greater than 0)
  • 30.30% Coverage on New Code (is less than 80.00%)
  • 0.00% Security Hotspots Reviewed on New Code (is less than 100.00%)

Project ID: node-vtex-api

View in SonarQube

Annotations

Check notice on line 6 in src/service/worker/runtime/graphql/middlewares/updateSchema.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/middlewares/updateSchema.ts#L6

'../typings' imported multiple times.

Check notice on line 7 in src/service/worker/runtime/graphql/middlewares/updateSchema.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/middlewares/updateSchema.ts#L7

'../typings' imported multiple times.

Check notice on line 4 in src/service/worker/runtime/graphql/middlewares/response.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/middlewares/response.ts#L4

Remove this unused import of 'Maybe'.

Check notice on line 5 in src/service/worker/runtime/graphql/middlewares/response.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/middlewares/response.ts#L5

Remove this unused import of 'Recorder'.

Check warning on line 18 in src/service/worker/runtime/graphql/middlewares/error.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/middlewares/error.ts#L18

Prefer using an optional chain expression instead, as it's more concise and easier to read.

Check warning on line 3 in src/service/worker/runtime/graphql/middlewares/query.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/middlewares/query.ts#L3

Prefer `node:url` over `url`.

Check warning on line 19 in src/service/worker/runtime/graphql/middlewares/query.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/middlewares/query.ts#L19

Prefer using an optional chain expression instead, as it's more concise and easier to read.

Check warning on line 40 in src/service/worker/runtime/graphql/schema/schemaDirectives/Deprecated.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/schemaDirectives/Deprecated.ts#L40

Remove this useless assignment to variable "type".

Check warning on line 23 in src/service/worker/runtime/graphql/schema/schemaDirectives/TranslatableV2.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/schemaDirectives/TranslatableV2.ts#L23

Unnecessary escape character: \`.

Check warning on line 23 in src/service/worker/runtime/graphql/schema/schemaDirectives/TranslatableV2.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/schemaDirectives/TranslatableV2.ts#L23

Unnecessary escape character: \`.

Check warning on line 23 in src/service/worker/runtime/graphql/schema/schemaDirectives/TranslatableV2.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/schemaDirectives/TranslatableV2.ts#L23

Unnecessary escape character: \`.

Check warning on line 23 in src/service/worker/runtime/graphql/schema/schemaDirectives/TranslatableV2.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/schemaDirectives/TranslatableV2.ts#L23

Unnecessary escape character: \`.

Check notice on line 35 in src/service/worker/runtime/graphql/schema/schemaDirectives/Sanitize.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/schemaDirectives/Sanitize.ts#L35

`new Error()` is too unspecific for a type check. Use `new TypeError()` instead.

Check notice on line 13 in src/service/worker/runtime/graphql/schema/typeDefs/index.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/typeDefs/index.ts#L13

This assertion is unnecessary since it does not change the type of the expression.

Check notice on line 17 in src/service/worker/runtime/graphql/schema/typeDefs/index.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/typeDefs/index.ts#L17

Unexpected negated condition.

Check warning on line 25 in src/service/worker/runtime/graphql/schema/typeDefs/sanitizedString.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/typeDefs/sanitizedString.ts#L25

Prefer using an optional chain expression instead, as it's more concise and easier to read.

Check warning on line 26 in src/service/worker/runtime/graphql/schema/typeDefs/sanitizedString.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/typeDefs/sanitizedString.ts#L26

Prefer using an optional chain expression instead, as it's more concise and easier to read.

Check notice on line 36 in src/service/worker/runtime/graphql/schema/typeDefs/sanitizedString.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/typeDefs/sanitizedString.ts#L36

Replace this "switch" statement by "if" statements to increase readability.

Check notice on line 15 in src/service/worker/runtime/graphql/schema/index.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/index.ts#L15

`String.raw` should be used to avoid escaping `\`.

Check notice on line 33 in src/service/worker/runtime/graphql/schema/index.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/index.ts#L33

This assertion is unnecessary since it does not change the type of the expression.

Check notice on line 47 in src/service/worker/runtime/graphql/schema/index.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/schema/index.ts#L47

Unnecessary use of boolean literals in conditional expression.

Check notice on line 10 in src/service/worker/runtime/graphql/utils/cacheControl.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/utils/cacheControl.ts#L10

`String.raw` should be used to avoid escaping `\`.

Check notice on line 53 in src/service/worker/runtime/graphql/utils/cacheControl.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/utils/cacheControl.ts#L53

Do not call `Array#push()` multiple times.

Check notice on line 66 in src/service/worker/runtime/graphql/utils/error.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/utils/error.ts#L66

Unexpected negated condition.

Check warning on line 6 in src/service/worker/runtime/graphql/utils/translations.ts

See this annotation in the file changed.

@sonar-workflows sonar-workflows / SonarQube Code Analysis

src/service/worker/runtime/graphql/utils/translations.ts#L6

Unnecessary escape character: \<.