I'm raising this based on discussions in Dart-Code/Dart-Code#4256 about surfacing more info from Pub and the resolution results in IDEs.
@sigurdm wrote:
Thinking about this now, we could perhaps surface security advisories the same way as analyzer warnings. The "outdated" ones should probably be more subtle.
Always having pub output a timestamped .dart_tool/pub/resolution_findings.json
sounds like a promising direction. It could contain findings from the last resolution, together with severities and locations in pubspec.yaml
.
If this information was written on a JSON file, the analysis server could read it and (depending on user preferences in analysis_options.yaml
) could produce diagnostics (warnings/errors/info) attached to the dependencies in pubspec.yaml
(or in the case of transitive dependencies, pubspec.lock
?).