I am developing a Flutter Module, multiple Flutter Plugins. The relationship between them is: module depends on all plugins. All plugins are not published to pub and use git dependencies.
I now need to add analysis_options.yaml to each plugin, the configuration is the same. So I have an idea, can all plugins share the same analysis_options.yaml? I haven't found a way yet.
flutter analyze cannot specify a directory, it is executed in the current project by default, and the analysis_options.yaml rule can be applied.
dart analyze can specify directories or files, but cannot apply the analysis_options.yaml rules. If I want to specify both directory or file scans, but also custom rules, how do I do that?