Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug in dartanalyzer in 2.13.0 SDK #46031

Closed
isoos opened this issue May 17, 2021 · 1 comment
Closed

Possible bug in dartanalyzer in 2.13.0 SDK #46031

isoos opened this issue May 17, 2021 · 1 comment
Assignees
Labels
analyzer-command Issues with the command-line dartanalyzer tool area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@isoos
Copy link

isoos commented May 17, 2021

~/bin/dart-sdk-2.13.0/bin/dartanalyzer --format machine bin lib
No dart files found at: /home/isoos/work/google/archive/lib

If you switch bin and lib on the arguments:

~/bin/dart-sdk-2.13.0/bin/dartanalyzer --format machine lib bin
INFO|LINT|unnecessary_getters_setters|/home/isoos/work/google/archive/lib/src/util/output_stream.dart|36|7|6|Avoid wrapping fields in getters and setters just to be "safe".
INFO|LINT|unnecessary_getters_setters|/home/isoos/work/google/archive/lib/src/util/output_stream.dart|34|11|6|Avoid wrapping fields in getters and setters just to be "safe".
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_command.dart|7|33|7|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_command.dart|100|32|10|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_command.dart|52|21|13|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_command.dart|22|44|4|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/io/extract_archive_to_disk.dart|20|21|13|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/io/extract_archive_to_disk.dart|65|21|13|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/bzip2_decoder.dart|69|60|12|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/bzip2_decoder.dart|69|43|14|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_file.dart|132|39|7|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_file.dart|132|26|11|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_file.dart|132|48|11|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/io/zip_file_encoder.dart|18|35|10|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/io/tar_file_encoder.dart|21|35|10|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/io/tar_file_encoder.dart|20|33|10|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/zlib/_zlib_decoder_js.dart|48|67|9|Avoid using braces in interpolation when not needed.
No dart files found at: /home/isoos/work/google/archive/bin

Using . works:

 ~/bin/dart-sdk-2.13.0/bin/dartanalyzer --format machine .
INFO|LINT|avoid_single_cascade_in_expression_statements|/home/isoos/work/google/archive/example/example.dart|21|7|63|Avoid single cascade in expression statements.
INFO|LINT|unnecessary_getters_setters|/home/isoos/work/google/archive/lib/src/util/output_stream.dart|36|7|6|Avoid wrapping fields in getters and setters just to be "safe".
INFO|LINT|unnecessary_getters_setters|/home/isoos/work/google/archive/lib/src/util/output_stream.dart|34|11|6|Avoid wrapping fields in getters and setters just to be "safe".
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_command.dart|7|33|7|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_command.dart|100|32|10|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_command.dart|52|21|13|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_command.dart|22|44|4|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/io/extract_archive_to_disk.dart|20|21|13|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/io/extract_archive_to_disk.dart|65|21|13|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/bzip2_decoder.dart|69|60|12|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/bzip2_decoder.dart|69|43|14|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_file.dart|132|39|7|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_file.dart|132|26|11|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/tar/tar_file.dart|132|48|11|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/io/zip_file_encoder.dart|18|35|10|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/io/tar_file_encoder.dart|21|35|10|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/io/tar_file_encoder.dart|20|33|10|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/lib/src/zlib/_zlib_decoder_js.dart|48|67|9|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/test/tests/pub_test_wip.dart|113|36|11|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/test/tests/pub_test_wip.dart|97|25|13|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/test/tests/pub_test_wip.dart|34|42|13|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/test/tests/pub_test_wip.dart|97|63|11|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/test/tests/pub_test_wip.dart|25|36|13|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/test/tests/pub_test_wip.dart|114|38|11|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/test/tests/io_test.dart|151|23|14|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/test/tests/io_test.dart|134|19|14|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/test/tests/io_test.dart|208|19|14|Avoid using braces in interpolation when not needed.
INFO|LINT|unnecessary_brace_in_string_interps|/home/isoos/work/google/archive/test/tests/io_test.dart|151|42|11|Avoid using braces in interpolation when not needed.
@srawlins srawlins added analyzer-command Issues with the command-line dartanalyzer tool area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels May 17, 2021
@scheglov scheglov self-assigned this May 18, 2021
@scheglov scheglov added the P3 A lower priority bug or feature request label May 18, 2021
@scheglov
Copy link
Contributor

dart-bot pushed a commit that referenced this issue May 19, 2021
Bug: #46031
Change-Id: I1f09a7460a46bb78dbae2ea750b303d17eaee9c8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200482
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-command Issues with the command-line dartanalyzer tool area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants