Skip to content

Conversation

@a14n
Copy link
Contributor

@a14n a14n commented Jun 1, 2017

2 new lints are coming in linter (prefer_asserts_in_initializer_list and prefer_const_constructors_in_immutables - names might change).

The first one lints asserts in contructor that can be move to initializer list. It allows to show that the asserts are done on parameters. It also improves the probabilty that the prefer_const_constructors_in_immutables rule lints the constructor to become a const constructor.

Is it something that is interessing to enable in flutter ? wdyt ?

(note: I use something similar to detect what immutable class could be const)

@Hixie
Copy link
Contributor

Hixie commented Jun 1, 2017

LGTM

@a14n a14n merged commit e3bab98 into flutter:master Jun 2, 2017
@a14n a14n deleted the prefer_asserts_in_initializer_list branch June 2, 2017 11:15
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
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.

3 participants