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

[Rule change] avoid-late-keyword - option to only error when late variable is initialized #1113

Closed
DetachHead opened this issue Dec 18, 2022 · 2 comments
Assignees
Labels
area-rules type: enhancement New feature or request
Milestone

Comments

@DetachHead
Copy link

What rule do you want to change?
avoid-late-keyword

How will the change be implemented? (New option, new default behavior, etc.)?
new option

Please provide some example code that this change will affect:

late bool foo;
late bool bar = false;

What does the rule currently do for this code?
error on both lines

What will the rule do after it's changed?
only error on bool

Are you willing to submit a pull request to implement this change?
if it's easy

@incendial incendial added type: enhancement New feature or request area-rules labels Dec 18, 2022
@incendial incendial added this to the 5.5.0 milestone Jan 10, 2023
@incendial incendial added waiting for release Will be available after new version is released and removed in progress labels Jan 10, 2023
@incendial
Copy link
Member

Available in 5.5.0 🚀

@incendial incendial removed the waiting for release Will be available after new version is released label Jan 23, 2023
@DetachHead
Copy link
Author

@incendial i'm sorry i worded this issue very badly. i meant i wanted an option to ban late variables that are initialized (as in, the late keyword isn't necessary). but thinking about it more i feel it should probably be a new rule anyway. i will raise a new issue

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

No branches or pull requests

3 participants