A CLI tool to generate a proxy for multiple analyzer plugins
Analyzer plugin proxy generator
A CLI tool to generate a proxy for multiple analyzer plugins.
Why
As mentioned on this github issue only 1 plugin can be enabled per analysis_options.yaml
file.
This approach is more like a workaround for this problem until the dart team provides official support for this.
How to run
- Install
analyzer_plugin_proxy_generator
as a development dependency.
dev_dependencies:
analyzer_plugin_proxy_generator: any
-
Run
dart run analyzer_plugin_proxy_generator [--override]
from the root of the project--override
will override the existing packages/analyzer_plugin_proxy.- A new package named
analyzer_plugin_proxy
will be created underpackages
folder.
-
If the command runs successfully it will update your
pubspec.yaml
and you will be prompted with a few more steps to follow.
Notes
As this is mostly created for personally usage I’ve kept it very simple. If you want to enhance this tool or improve it, PRs or issues are welcomed.