8000 add deprecated_consistency by a14n · Pull Request #2451 · dart-archive/linter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

add deprecated_consistency #2451

Merged
merged 4 commits into from
Feb 12, 2021
Merged

Conversation

a14n
Copy link
Contributor
@a14n a14n commented Feb 12, 2021

Lint to apply @Deprecated() consistently:

  • if a class is deprecated its contructors should also be deprecated.
  • if a field is deprecated the contructor parameter pointing to it should also be deprecated.
  • if a contructor parameter pointing to a field is deprecated the field should also be deprecated.

Related to flutter/flutter#75903, flutter/flutter#75813, and https://docs.google.com/document/d/1gR-uEryHrAtkU8-6rTg489JbxtBOnTqG_W3WDCcfU00/edit?usp=sharing&resourcekey=0-6Oy2jitxjIWgBFntFZsWmg

@google-cla google-cla bot added the cla: yes label Feb 12, 2021
@coveralls
Copy link
coveralls commented Feb 12, 2021

Coverage Status

Coverage increased (+0.01%) to 96.633% when pulling 905af0b on a14n:deprecated_consistency into 127e095 on dart-lang:master.

Copy link
Contributor
@pq pq left a comment

Choose a reason for hiding this comment

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

Awesome!


Do apply `@Deprecated()` consistently:

- if a class is deprecated its contructors should also be deprecated.
Copy link
Contributor

Choose a reason for hiding this comment

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

=> if a class is deprecated, its constructors should also be deprecated.

Do apply `@Deprecated()` consistently:

- if a class is deprecated its contructors should also be deprecated.
- if a field is deprecated the contructor parameter pointing to it should also be deprecated.
Copy link
Contributor

Choose a reason for hiding this comment

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

=> if a field is deprecated, the constructor parameter pointing to it should also be deprecated.


- if a class is deprecated its contructors should also be deprecated.
- if a field is deprecated the contructor parameter pointing to it should also be deprecated.
- if a contructor parameter pointing to a field is deprecated the field should also be deprecated.
Copy link
Contributor

Choose a reason for hiding this comment

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

=> if a constructor parameter pointing to a field is deprecated, the field should also be deprecated.


Do apply `@Deprecated()` consistently:

- if a class is deprecated, its contructors should also be deprecated.
Copy link
Contributor

Choose a reason for hiding this comment

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

contructors => constructors

Do apply `@Deprecated()` consistently:

- if a class is deprecated, its contructors should also be deprecated.
- if a field is deprecated, the contructor parameter pointing to it should also be deprecated.
Copy link
Contributor

Choose a reason for hiding this comment

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

8000

contructor => constructor


- if a class is deprecated, its contructors should also be deprecated.
- if a field is deprecated, the contructor parameter pointing to it should also be deprecated.
- if a contructor parameter pointing to a field is deprecated, the field should also be deprecated.
Copy link
Contributor

Choose a reason for hiding this comment

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

contructor => constructor

@a14n
Copy link
Contributor Author
a14n commented Feb 12, 2021

@pq sorry for the double fix and thanks for the double check :)

Copy link
Contributor
@pq pq left a comment

Choose a reason for hiding this comment

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

Nice!

💎

@pq
Copy link
Contributor
pq commented Feb 12, 2021

@pq sorry for the double fix and thanks for the double check :)

no worries. Thanks for the follow-through!

@pq pq merged commit 4f06a0e into dart-archive:master Feb 12, 2021
mockturtl added a commit to mockturtl/tidy that referenced this pull request Mar 3, 2021
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.

4 participants
0