Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

rename local functions with _s #664

Merged
merged 3 commits into from
Apr 28, 2022
Merged

rename local functions with _s #664

merged 3 commits into from
Apr 28, 2022

Conversation

pq
Copy link
Contributor

@pq pq commented Apr 27, 2022

These will be flagged by the next linter release which updates non_constant_identifier_names to flag local functions.

See also:

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read the Flutter Style Guide recently, and have followed its advice.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

These will be flagged by the next linter release which updates `non_constant_identifier_names` to flag local functions.
@pq pq requested a review from goderbauer April 27, 2022 02:01
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks for cleaning this up!

@pq
Copy link
Contributor Author

pq commented Apr 27, 2022

@goderbauer: is the goldens failure legitimate? Any advice?

@guidezpl
Copy link
Member

The goldens at the bottom of https://github.com/flutter/gallery/actions/runs/2233733806 looks to be showing slight changes in shadow rendering

@goderbauer
Copy link
Member

I think those goldens just need to be updated as documented here: https://github.com/flutter/gallery/tree/master/test_goldens#updating-goldens

@pq
Copy link
Contributor Author

pq commented Apr 27, 2022

Good deal. Updated 🤞

@goderbauer
Copy link
Member

Looks like the golden check is still unhappy even though there is no visible difference...

@guidezpl could you help out here?

@pq
Copy link
Contributor Author

pq commented Apr 27, 2022

@guidezpl, @goderbauer: I regenerated (on Mac OS) and am still seeing failures...

I'm also a little puzzled as to why my PR would provoke a need to regenerate?

@guidezpl
Copy link
Member

guidezpl commented Apr 27, 2022

The icons render differently on the home_page_desktop_dark and home_page_desktop_light images.

I'm hesitant to merge this even with new screenshots, because we've often found they're the cause of upstream work landing and being reverted. Meaning, we end up having to revert screenshots too. Alternatively, we could make the Goldens check not required, or at least allow team members to merge without all status checks.

@godofredoc might be able to help with that since even team members don't have access to the repo's settings

@pq
Copy link
Contributor Author

pq commented Apr 28, 2022

@guidezpl, @godofredoc : any thoughts here? I'm happy to back out my goldens changes.

@godofredoc
Copy link
Contributor

@guidezpl, @godofredoc : any thoughts here? I'm happy to back out my goldens changes.

Removed golden tests from the required list.

@pq pq merged commit 51fd616 into flutter:master Apr 28, 2022
@pq pq mentioned this pull request May 3, 2022
8 tasks
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.

4 participants