Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling strict Typescript reveals 118 errors #205

Open
paazmaya opened this issue Jul 5, 2023 · 4 comments
Open

Enabling strict Typescript reveals 118 errors #205

paazmaya opened this issue Jul 5, 2023 · 4 comments
Assignees

Comments

@paazmaya
Copy link
Contributor

paazmaya commented Jul 5, 2023

Any plans on enabling Typescript strict mode?

Currently it seems to

Found 118 error(s).

@pashidlos
Copy link
Member

no plans atm
would you like to take it?

@paazmaya
Copy link
Contributor Author

paazmaya commented Jul 7, 2023

Ok, I cannot promise to solve all, but I can promise to look at them while doing other things...

@paazmaya paazmaya self-assigned this Aug 23, 2023
@paazmaya
Copy link
Contributor Author

Current state:

Found 183 errors in 53 files.

Errors  Files
     2  prisma/seed.ts:31
     1  src/auth/auth.service.ts:12
     1  src/auth/guards/role.guard.ts:45
     3  src/builds/builds.controller.ts:93
     3  src/builds/builds.service.spec.ts:101
     4  src/builds/builds.service.ts:28
     1  src/builds/dto/build-create.dto.ts:19
     1  src/builds/dto/build-paginated.dto.ts:7
    17  src/builds/dto/build.dto.spec.ts:45
     6  src/builds/dto/build.dto.ts:46
     1  src/compare/compare.service.ts:21
     5  src/compare/libs/consts.ts:5
     1  src/compare/libs/looks-same/looks-same.service.spec.ts:70
     2  src/compare/libs/looks-same/looks-same.service.ts:57
     1  src/compare/libs/odiff/odiff.service.spec.ts:69
     1  src/compare/libs/pixelmatch/pixelmatch.service.spec.ts:62
     1  src/main.ts:26
    11  src/projects/dto/project.dto.ts:9
     3  src/projects/projects.service.ts:24
     2  src/shared/dto/baseline-data.dto.ts:7
     7  src/shared/dto/baseline.dto.ts:7
     3  src/shared/dto/pagination.dto.ts:5
     1  src/shared/events/events.gateway.ts:11
     3  src/shared/static/static.service.ts:37
     1  src/test-runs/dto/create-test-request-base64.dto.ts:10
     1  src/test-runs/dto/create-test-request-multipart.dto.ts:16
     2  src/test-runs/dto/create-test-request.dto.ts:10
     4  src/test-runs/dto/ignore-area.dto.ts:7
     1  src/test-runs/dto/testRun-paginated.dto.ts:7
    11  src/test-runs/dto/testRun.dto.ts:52
     2  src/test-runs/dto/testRunResult.dto.ts:15
     2  src/test-runs/dto/update-ignore-area.dto.ts:10
     1  src/test-runs/dto/update-test.dto.ts:7
     1  src/test-runs/test-runs.controller.ts:64
     1  src/test-runs/test-runs.service.spec.ts:339
    15  src/test-runs/test-runs.service.ts:42
     9  src/test-variations/dto/base-test-variation.dto.ts:5
     1  src/test-variations/dto/test-variation.dto.ts:7
     3  src/test-variations/test-variations.controller.ts:29
    10  src/test-variations/test-variations.service.ts:30
     3  src/test-variations/types.ts:5
     2  src/users/dto/assign-role.dto.ts:8
     4  src/users/dto/user-create.dto.ts:7
     2  src/users/dto/user-login-request.dto.ts:7
     1  src/users/dto/user-login-response.dto.ts:11
     3  src/users/dto/user-update.dto.ts:7
     2  src/users/dto/user.dto.ts:26
     2  src/users/users.service.ts:35
     1  test/builds.e2e-spec.ts:79
     1  test/preconditions.ts:60
     7  test/test-runs.e2e-spec.ts:251
     7  test/users.e2e-spec.ts:32
     2  test_acceptance/acceptance.spec.ts:16

@paazmaya
Copy link
Contributor Author

Today

Found 183 errors in 53 files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants