Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Cleanup lint warnings #572

Merged
merged 1 commit into from
May 5, 2020
Merged

Cleanup lint warnings #572

merged 1 commit into from
May 5, 2020

Conversation

eanders-ms
Copy link
Contributor

  • Allow TODO comments for the time being.
  • Fix formatting in collider.ts.

@@ -59,7 +59,7 @@ module.exports = {
"no-shadow": "warn",
"no-unmodified-loop-condition": "error",
"no-void": "error",
"no-warning-comments": ["warn", {"terms": ["todo", "fixme", "tslint"]}],
"no-warning-comments": ["warn", {"terms": ["fixme", "tslint"]}],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the lint warning, to remind us "to do" whatever is mentioned. If there's a TODO in an infrequently reviewed code path, we might not see it or be aware of it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a clean build. Some reasons:

  • As new developers start working in the codebase, if they see a bunch of warnings the first time they build it, they'll never pay attention to the build output again. They won't notice any new warnings their changes might introduce.
  • Tracking todos via lint warnings doesn't scale. Actionable todos should be tracked in GitHub issues. That way they're searchable, assignable, taggable, and can be prioritized.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the intention was that we shouldn't let TODOs pile up, but I see your point. Approved.

@eanders-ms eanders-ms requested a review from stevenvergenz May 5, 2020 18:04
@eanders-ms eanders-ms merged commit b1bed74 into red May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants