[video_player_platform_interface] Migrate to null safety #3159
[video_player_platform_interface] Migrate to null safety #3159
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I read through the pigeon stuff, looks good to me. The addition of the dart-null-saftey flag happens in a different repo right?
The linter for darwin plugins is complaining about the generated file FYI @gaaclarke @jmagman do you know if there's a way to disable the linter for auto generated files? |
I don't think we should ignore it, our developers using the plugin will see the same warning. Can we fix the generation? |
flutter/flutter#63966 This is the issue. If i remember correctly that it is no longer an analysis error in later versions of clang =( |
This analyzer can be turned off with the CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION environment variable. Since the objection isn't a problem according to later versions of clang I'd rather disable that check. You might be able to do it in the source file too but I didn't see a way. |
Alternatively, you can use the |
@gaaclarke Done. @jmagman I agree. Ideally, the analyzer doesn't complain, but mostly likely we won't be able to enforce the same analyzer rules/version. |
True we can't enforce it, but most people won't change the default from the |
Agreed. For my own understanding, what file is defining the linter rules? Is this file/configuration from |
In this case, it's coming from the CocoaPods tooling |
The problem is that clang has redefined the meaning of some checks. In this case something that was a warning in one version became acceptable in a later version. It's untenable to maintain support for the union of the strictest settings of all versions of clang for all possible settings. Ideally we run the analyzer once as part of CI for pigeon, then opt out of analysis when it's used (with a flag to turn it on if people want). |
Null safety migration.
FYI @gaaclarke the Dart code generated by Pigeon had trailing whitespaces.