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

Strict null checking #4201

Closed
anthonydresser opened this issue Feb 26, 2019 · 5 comments
Closed

Strict null checking #4201

anthonydresser opened this issue Feb 26, 2019 · 5 comments

Comments

@anthonydresser
Copy link
Contributor

We should start looking at enforcing strict null check on our typescript files similar to vscode (microsoft/vscode#60565). This helps catch errors due to our code hitting paths where we try and access a null object.

@anthonydresser
Copy link
Contributor Author

@kburtram @MattIrv thoughts?

@kburtram
Copy link
Member

@anthonydresser in general I like this idea. Though I would probably wait for VS Code to complete any required work on their side and we pick-up that up in a refresh (if applicable). And we need to look at the amount of accumulated debt and when to schedule relative to rest of our fundamentals backlog.

@MattIrv
Copy link
Contributor

MattIrv commented Feb 26, 2019

It's worth bringing this in since VS Code is already doing it and it should be pretty easy to run the same tasks for our build.

I am a bit worried about it since these issues won't get caught in our regular yarn run watch workflow, right? But as long as it's included in our azure pipelines definition that should be good

@anthonydresser
Copy link
Contributor Author

Vscode has a command to scan certain files and apply the strict-null-check tslint config. So it's something they are doing slowly, catching up on debt, then when they have all their existing code enabled they will add it to their default tslint. We could take that approach.

@kburtram kburtram added Task and removed Task labels Apr 4, 2019
@kburtram kburtram added this to the Backlog milestone Apr 4, 2019
@kburtram
Copy link
Member

Closing older issues.

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

No branches or pull requests

3 participants