Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

deprecate prefer_bool_in_asserts #1276

Merged
merged 2 commits into from
Nov 24, 2018
Merged

Conversation

pq
Copy link
Contributor

@pq pq commented Nov 24, 2018

Fixes: dart-lang/sdk#57809.

We should sweep and remove all deprecated lints before a major release (#1275).

I'll update docgen to emphasize deprecated-ness in generated docs too (#1274).

/cc @bwilkerson @srawlins @a14n

@coveralls
Copy link

coveralls commented Nov 24, 2018

Coverage Status

Coverage remained the same at 96.315% when pulling 6d8a5c8 on deprecate_prefer_bool_in_asserts into a3667b1 on master.

@@ -32,6 +32,11 @@ assert(() {
}());
```

**DEPRECATED:** In Dart 2, `assert`s no longer accept `bool` values so this rule
Copy link
Contributor

Choose a reason for hiding this comment

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

"accept bool values" --> "accept non-bool values"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops. Good catch!

@pq pq merged commit a4ac0e9 into master Nov 24, 2018
@pq pq deleted the deprecate_prefer_bool_in_asserts branch November 24, 2018 19:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

5 participants