flutter/dev
Greg Spencer 4ce7fdd92b
Remove 'must be non-null' and 'must not be null' comments from non-framework libraries (#134994)
## Description

This removes all of the comments that are of the form "so-and-so must not be null" or "so-and-so must be non-null" from the cases where those values are defines as non-nullable values.

This PR removes them from the library in the repo that don't have anything to do with the framework.

This was done by hand, since it really didn't lend itself to scripting, so it needs to be more than just spot-checked, I think. I was careful to leave any comment that referred to parameters that were nullable, but I may have missed some.

In addition to being no longer relevant after null safety has been made the default, these comments were largely fragile, in that it was easy for them to get out of date, and not be accurate anymore anyhow.

This did create a number of constructor comments which basically say "Creates a [Foo].", but I don't really know how to avoid that in a large scale change, since there's not much you can really say in a lot of cases.  I think we might consider some leniency for constructors to the "Comment must be meaningful" style guidance (which we de facto have already, since there are a bunch of these).

## Related PRs
- https://github.com/flutter/flutter/pull/134984
- https://github.com/flutter/flutter/pull/134991
- https://github.com/flutter/flutter/pull/134992
- https://github.com/flutter/flutter/pull/134993

## Tests
 - Documentation only change.
2023-09-19 17:26:07 +00:00
..
a11y_assessments Bump gradle heap size limit in *everywhere* (#134665) 2023-09-13 10:36:24 -07:00
automated_tests Enable private field promotion for dev (#134480) 2023-09-12 18:29:00 +00:00
benchmarks Remove 'must be non-null' and 'must not be null' comments from non-framework libraries (#134994) 2023-09-19 17:26:07 +00:00
bots [web] provide serviceWorkerVersion to the getNewServiceWorker function (#131240) 2023-09-14 22:17:08 +00:00
ci Bump activesupport from 6.1.7.3 to 6.1.7.6 in /dev/ci/mac (#133225) 2023-08-24 20:06:51 +00:00
conductor Enable private field promotion for dev (#134480) 2023-09-12 18:29:00 +00:00
customer_testing Enable private field promotion for dev (#134480) 2023-09-12 18:29:00 +00:00
devicelab Added a devicelab test for vulkan validation layers (#134685) 2023-09-14 09:13:35 -07:00
docs Enable private field promotion for dev (#134480) 2023-09-12 18:29:00 +00:00
forbidden_from_release_tests Enable private field promotion for dev (#134480) 2023-09-12 18:29:00 +00:00
integration_tests [Windows_android channels_integration_test] Column -> ListView (#134836) 2023-09-15 19:53:24 +00:00
manual_tests Bump gradle heap size limit in *everywhere* (#134665) 2023-09-13 10:36:24 -07:00
missing_dependency_tests Enable private field promotion for dev (#134480) 2023-09-12 18:29:00 +00:00
snippets/config Remove null-safety argument from DartPad doc samples (#127345) 2023-05-23 00:10:11 +00:00
tools Remove 'must be non-null' and 'must not be null' comments from non-framework libraries (#134994) 2023-09-19 17:26:07 +00:00
tracing_tests Bump gradle heap size limit in *everywhere* (#134665) 2023-09-13 10:36:24 -07:00
analysis_options.yaml Enable more lints (#91642) 2021-10-14 22:03:03 -07:00
README.md Migrate to .ci.yaml (#82960) 2021-05-19 20:09:46 -07:00

This directory contains tools and resources that the Flutter team uses during the development of the framework. The tools in this directory should not be necessary for developing Flutter applications, though of course, they may be interesting if you are curious.

The tests in this directory are run in the framework_tests_misc-* shards.