Skip to content

dartanalyzer --options not honored #33753

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

Closed
kevin-sakemaer opened this issue Jul 3, 2018 · 2 comments
Closed

dartanalyzer --options not honored #33753

kevin-sakemaer opened this issue Jul 3, 2018 · 2 comments
Labels
devexp-command Issues with the command-line dartanalyzer tool legacy-area-analyzer Use area-devexp instead. P4 type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@kevin-sakemaer
Copy link

kevin-sakemaer commented Jul 3, 2018

Dart version and OS

  • Dart VM version: 2.0.0-dev.66.0 (Unknown timestamp) on "linux_x64"
  • linux

Here is a repos where you can repros it.

Step:

  • clone the repos
  • run tools/pre_commit.sh

What is expected:
file ending in .g.dart should be excluded since it's in the analysis_options.yaml

What happen:
file ending in .g.dart are not excluded

here is the call to dartanalyzer
dartanalyzer --options=analysis_options.yaml --fatal-hints --fatal-warnings .
and in the analysis_options.yaml i have

analyzer:
  strong-mode: true
  plugins:
    - angular
  exclude:
    - test/**/*.g.dart
@zoechi
Copy link
Contributor

zoechi commented Jul 4, 2018

similar or dup of #28463
also #26212 which is supposed to be fixed
and #28754

@a-siva a-siva added the legacy-area-analyzer Use area-devexp instead. label Jul 9, 2018
@bwilkerson bwilkerson added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Aug 28, 2018
@srawlins srawlins added the devexp-command Issues with the command-line dartanalyzer tool label Jun 17, 2020
@srawlins srawlins added the P4 label Jan 11, 2021
@srawlins
Copy link
Member

We no longer support the feature of passing a different analysis_options file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devexp-command Issues with the command-line dartanalyzer tool legacy-area-analyzer Use area-devexp instead. P4 type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

5 participants