-
Notifications
You must be signed in to change notification settings - Fork 769
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
build: enable strict type checking #57
Comments
note: i sent multiple PRs (as separate branches) in order to export them as separate CLs, each of which can be reasonably sized. :-( |
Update #57 Change-Id: I44f25a8fc9f76cab5265365b7a1940dcd2f04217 Change-Id: I44f25a8fc9f76cab5265365b7a1940dcd2f04217 GitHub-Last-Rev: 11759f1 GitHub-Pull-Request: #58 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/234259 Reviewed-by: Rebecca Stambler <[email protected]>
I'd like to pick this work back up ahead of any major refactoring. We have just under 500 errors left excluding test files, 600 with test files. What is the story behind abandoning the PRs linked above? |
Change https://go.dev/cl/400996 mentions this issue: |
Change https://go.dev/cl/401615 mentions this issue: |
Change https://go.dev/cl/401617 mentions this issue: |
Change https://go.dev/cl/401619 mentions this issue: |
Change https://go.dev/cl/401618 mentions this issue: |
Change https://go.dev/cl/401620 mentions this issue: |
In most cases the use of getGoVersion is expected to return a value. Updating the function to throw an error in the case that a Go version is not found makes this explicit. For the exceptions where an explicit binary path is requested we handle the error thrown and show the existing warnings. For #57. Change-Id: Ib80ceec0636134b6694b0080ff19e0295d49d59f Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/400996 Reviewed-by: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Run-TryBot: Jamal Carvalho <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]>
Change https://go.dev/cl/403055 mentions this issue: |
Adding a separate tsconfig for builds will allow us to have strict type checking rules enabled for editor environments before enforcing them for builds and tests. For #57. Change-Id: I5059e9bbcc87258ad8accd4c476dd9d9d71f0406 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/401615 TryBot-Result: kokoro <[email protected]> Run-TryBot: Jamal Carvalho <[email protected]> Reviewed-by: Benny Siegert <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
For #57. Change-Id: I13bae5ae849fae74cabcf7fe2fe88145320d95b8 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/401617 Reviewed-by: Benny Siegert <[email protected]> Run-TryBot: Jamal Carvalho <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]>
For #57. Change-Id: Iec4ee1a78692b913da6cc9f3ec9413367647da73 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/401618 Run-TryBot: Jamal Carvalho <[email protected]> Reviewed-by: Benny Siegert <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]>
For #57. Change-Id: I79926f9e9a110cfaec69fe5b484faa244a1c3a66 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/401619 Reviewed-by: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Jamal Carvalho <[email protected]> Reviewed-by: Benny Siegert <[email protected]> TryBot-Result: kokoro <[email protected]>
For #57. Change-Id: I18d3ea64f3022ee1ca722ace8d03ec8bbd51fe26 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/401620 Run-TryBot: Jamal Carvalho <[email protected]> Reviewed-by: Benny Siegert <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
For #57. Change-Id: Iff105c0ce4b03e61e9fa8a05567fa99f71d1d217 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/403055 Reviewed-by: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Run-TryBot: Jamal Carvalho <[email protected]> Reviewed-by: Suzy Mueller <[email protected]>
Change https://go.dev/cl/403775 mentions this issue: |
Test files are excluded from strict typechecking. We plan to fix errors in those files as needed or remove the tests with the legacy tooling. For #57. Change-Id: I84ea8bc1834e2e1ee58c297fed984bb94ec0de52 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/403775 TryBot-Result: kokoro <[email protected]> Run-TryBot: Jamal Carvalho <[email protected]> Auto-Submit: Jamal Carvalho <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
Change https://go.dev/cl/405075 mentions this issue: |
Only two directories left, test/integration and test/mocks. Strict type checking is enabled in CI for the rest of the files using tsconfig.strict.json. |
Change https://go.dev/cl/406303 mentions this issue: |
Change https://go.dev/cl/406304 mentions this issue: |
For #57. Change-Id: I712d5eb0596695e2d8db7ac7611c7e938cc4f2ce Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/406303 Run-TryBot: Jamal Carvalho <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]>
Currently we disabled
--strict
,--strictNullChecks
, and--strictPropertyInitialization
.History: microsoft/vscode-go#2304
The text was updated successfully, but these errors were encountered: