dart-archive / dart2_fix

A tool to migrate API usage to Dart 2
https://pub.dartlang.org/packages/dart2_fix
BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

Inconsistency with reporting time #9

Closed scheglov closed 6 years ago

scheglov commented 6 years ago

No fixes, time is reported.

scheglov@scheglov-macbookpro4:~/Source/Dart/sdk.git/sdk/pkg/analyzer (master)$ pub global run dart2_fix
Checking /Users/scheglov/Source/Dart/sdk.git/sdk/pkg/analyzer...

Found 0 fixes in 2.9s.

Has fixes, time is reported.

scheglov@scheglov-macbookpro4:~/Source/Dart/sdk.git/sdk/pkg/dev_compiler (master)$ pub global run dart2_fix
Checking /Users/scheglov/Source/Dart/sdk.git/sdk/pkg/dev_compiler...

bin/dartdevc.dart
  line 57 • UTF8 => utf8

bin/dartdevk.dart
  line 40 • UTF8 => utf8

lib/src/analyzer/module_compiler.dart
  line 6 • JSON => json
  line 474 • JSON => json
  line 501 • JSON => json
  line 515 • JSON => json

lib/src/kernel/command.dart
  line 6 • JSON => json
  line 216 • JSON => json

test/worker/worker_test.dart
  line 123 • UTF8 => utf8
  line 373 • UTF8 => utf8

tool/kernel_sdk.dart
  line 7 • JSON => json
  line 63 • JSON => json

web/web_command.dart
  line 271 • JSON => json
  line 284 • JSON => json

Found 14 fixes in 10.2s.

To apply these fixes, run again using the --apply argument.

Has an error, no time is reported.

scheglov@scheglov-macbookpro4:~/Source/Dart/sdk.git/sdk/pkg/analysis_server (master)$ pub global run dart2_fix
Checking /Users/scheglov/Source/Dart/sdk.git/sdk/pkg/analysis_server...

error • test/integration/analysis/reanalyze_concurrent_test.dart:27 • Annotation must be either a const variable reference or const constructor invocation

Found 1 analysis error.