plugins_ in_ inner_ options
Details about the 'plugins_in_inner_options' diagnostic produced by the Dart analyzer.
Plugins can only be specified in the root of a pub workspace or the root of a package that isn't in a workspace.
Description
#
The analyzer produces this diagnostic when analyzer plugins
are defined in an analysis options file other than the
analysis_options.yaml at the root of the package.
Example
#
Given an analysis_options.yaml file located in a
subdirectory of the package root, the following code produces
this diagnostic because it attempts to define plugins there:
// %uri="inner/analysis_options.yaml"
plugins:
one: ^1.0.0
Common fixes
#Remove the list of plugins from the file.
除非另有说明,文档之所提及适用于 Dart 3.12.2 版本报告页面问题.