sinProject-Inc / talk

Listening and Speaking
https://sinproject.net
MIT License
3 stars 6 forks source link

Set tsconfig to strictest #1445 #1446

Closed REI-MORI closed 9 months ago

REI-MORI commented 10 months ago

closes #1445

For the Submitter

Tasks

For the Reviewer

Checks

After Reviewing

github-actions[bot] commented 10 months ago

Update Summary

Several small changes were made to improve the type safety and access of certain properties.

src/lib/components/menu_items_sub.svelte

src/routes/(authed)/translate/+page.svelte

src/routes/+layout.svelte

Suggestions for improvement

src/lib/components/menu_items_sub.svelte

src/routes/(authed)/translate/+page.svelte

src/routes/+layout.svelte

github-actions[bot] commented 10 months ago

Update Summary

In the recent commits, the handling of ValidText instances has been refactored in multiple files.

src/lib/general/text_error.ts

src/lib/text/valid_text.ts

src/lib/view/message.ts

Suggestions for improvement

src/lib/text/valid_text.ts

src/lib/general/text_error.ts, src/lib/view/message.ts

github-actions[bot] commented 10 months ago

Update Summary

This revision centers around updates and enhancements in the tests for the ClientHostName class in client_hostname.test.ts. Here are the precise changes:

src/lib/network/client_hostname.test.ts

Suggestions for improvement

src/lib/network/client_hostname.test.ts

github-actions[bot] commented 10 months ago

Update Summary

The changes involve refactoring the test code in the text_error.test.ts and valid_text.test.ts files in order to more efficiently and dynamically validate different test cases. This is done by creating an array of test cases, each consisting of an input and its expected output or error, and running each case in a loop. The different tests that were previously done one by one have now been condensed into this more dynamic testing approach.

src/lib/general/text_error.test.ts

src/lib/text/valid_text.test.ts

Suggestions for improvement

src/lib/general/text_error.test.ts

src/lib/text/valid_text.test.ts

github-actions[bot] commented 10 months ago

Update Summary

The update replaced some null and undefined checking mechanisms in three files.

translate_with_google_advanced.ts

+page.server.ts

+server.ts

Suggestions for improvement

translate_with_google_advanced.ts

+page.server.ts

+server.ts

github-actions[bot] commented 10 months ago

Update Summary

The code changes in these files are primarily related to refactoring of test cases for readability and reuse. The changes mainly consist of the extraction of repetitive bits of code into reusable parts, and restructuring the test cases to use Jest's parameterized test format.

background.test.ts

text_error.test.ts

client_hostname.test.ts

valid_text.test.ts

message.test.ts

Suggestions for improvement

The tests are quite comprehensive and the refactoring seems solid. They are readable and easy to understand. However, here are some minor improvements that might be considered.

background.test.ts

text_error.test.ts

client_hostname.test.ts

valid_text.test.ts

message.test.ts

github-actions[bot] commented 10 months ago

Update Summary

In this update, changes have been made mainly to test files and configuration files.

.github/pull_request_template.md

.github/workflows/ci.yml

src/lib/*/.test.ts

vite.config.ts

Suggestions for improvement

.github/pull_request_template.md

.github/workflows/ci.yml

src/lib/*/.test.ts

vite.config.ts

github-actions[bot] commented 10 months ago

Update Summary

There are updates in two files: '.github/workflows/ci.yml' and 'vite.config.ts'.

.github/workflows/ci.yml

vite.config.ts

Suggestions for improvement

.github/workflows/ci.yml

vite.config.ts

codeclimate[bot] commented 10 months ago

Code Climate has analyzed commit a05d8b02 and detected 5 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 5

View more on Code Climate.

sonarcloud[bot] commented 10 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

83.3% 83.3% Coverage
0.0% 0.0% Duplication