Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

feat: add new rule avoid-banned-imports & modify prefer-extracting-callbacks allow short callbacks to exist #868

Merged
merged 58 commits into from Jun 16, 2022

Conversation

fzyzcjy
Copy link
Contributor

@fzyzcjy fzyzcjy commented May 26, 2022

#820
#866
#873

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[ ] Bug fix
[x] New rule
[ ] Changes an existing rule
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:

What changes did you make? (Give an overview)

Is there anything you'd like reviewers to focus on?

@incendial incendial self-requested a review May 28, 2022 13:09
Copy link
Member

@incendial incendial left a comment

Choose a reason for hiding this comment

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

Left few small comments, everything else looks great

@incendial incendial added type: enhancement New feature or request area-rules labels May 28, 2022
@incendial incendial added this to the 5.0.0 milestone May 28, 2022
@incendial
Copy link
Member

@roman-petrov do you want to participate in the review?

@roman-petrov
Copy link
Contributor

@roman-petrov do you want to participate in the review?

I think that this is not necessary: I already reviewed the implementation and I think it covers majority of cases we need to start with.

@fzyzcjy
Copy link
Contributor Author

fzyzcjy commented Jun 8, 2022

I am going to implement other features (e.g. #873)... So if this is not merged, two features will be in one single PR.

@fzyzcjy fzyzcjy changed the title feat: avoid-banned-imports feat: add new rule avoid-banned-imports & modify prefer-extracting-callbacks allow short callbacks to exist Jun 8, 2022
@fzyzcjy
Copy link
Contributor Author

fzyzcjy commented Jun 8, 2022

ready for review

Copy link
Member

@incendial incendial left a comment

Choose a reason for hiding this comment

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

Sorry for the long delay, left a few small comments. Also, could you add ignores for the dependency_validator as listed here https://pub.dev/packages/dependency_validator#configuration ?

@incendial
Copy link
Member

@fzyzcjy will you be able to take a look at the comments above? if not, it's totally okay, I can address them myself (you already did a great job!)

@fzyzcjy
Copy link
Contributor Author

fzyzcjy commented Jun 16, 2022

Oh I forgot it... I have been busy recently so maybe have no time to fix the minor issues above.

@incendial
Copy link
Member

Oh I forgot it... I have been busy recently so maybe have no time to fix the minor issues above.

Sure, will fix it myself then

@incendial incendial modified the milestones: 5.0.0, 4.16.0 Jun 16, 2022
@incendial incendial merged commit 2b8980b into dart-code-checker:master Jun 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-rules type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants