Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Conversation

@natebosch
Copy link
Contributor

This matches old behavior and is a little more clear than just a digit.
This will also satisfy the lint on the latest SDK. See
https://github.com/dart-lang/linter/issues/684#issuecomment-343543273

This matches old behavior and is a little more clear than just a digit.
This will also satisfy the lint on the latest SDK. See
https://github.com/dart-lang/linter/issues/684#issuecomment-343543273
@natebosch
Copy link
Contributor Author

ping @matanlurey - is this worth getting in?

@matanlurey
Copy link
Contributor

Sorry I missed this.

Would you consider this a breaking change? Should it be opt-in for now?

Otherwise many golden file tests will fail, for example.

@natebosch

@natebosch
Copy link
Contributor Author

Yeah I have some golden tests that I expect to start failing after this change.

I personally wouldn't consider that breaking - I think its a test that is (perhaps necessarily) relying on an implementation detail and so I'd expect it to be brittle.

I'd rather not make it an option. The API to enable it becomes another part of the public surface area which is broken if/when we remove the option, and we deal with higher complexity in the mean time.

I don't have strong opinions here. I know we've had customers who want these generated files to follow that lint rule, but I'd be fine with either of:
1 - push it and break brittle tests
2 - hold off until 3.0 and ship it then

@matanlurey
Copy link
Contributor

It doesn't bother me either way.

We should document that the Allocator doesn't guarantee and output as part of this PR then?

@natebosch

@natebosch
Copy link
Contributor Author

Added a note in the Doc comment for Allocator.simplePrefixing

@natebosch natebosch merged commit dd2180c into master Nov 14, 2017
@natebosch natebosch deleted the natebosch_import-prefixes branch November 14, 2017 22:28
@matanlurey
Copy link
Contributor

@natebosch Let me know if you want a release this week.

@natebosch
Copy link
Contributor Author

No rush - this change was a "may as well do it while it's on my mind" rather than a "I need this right now".

mosuem pushed a commit to dart-lang/tools that referenced this pull request Oct 25, 2024
This matches old behavior and is a little more clear than just a digit.
This will also satisfy the lint on the latest SDK. See
https://github.com/dart-lang/linter/issues/684#issuecomment-343543273
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants