Flutter analyze reports 3 issues in analysis_options.yaml
Yuiry-IV opened this issue · 2 comments
Yuiry-IV commented
Describe the bug
Flutter analyze reports 3 issues in analysis_options.yaml
To Reproduce
Steps to reproduce the behavior:
- Add very_good_analysis: ^2.3.0 to project pubspec
- Run flutter pub upgrade
- Run flutter pub get
- Run flutter analyze
- Observed 3 errors in analysis options yaml
flutter analyze
Analyzing application name...
warning - Warning in the included options file C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\very_good_analysis-2.3.0\lib\analysis_options.2.3.0.yaml(1782..1803): 'deprecated_consistency' is not a
recognized lint rule - analysis_options.yaml:1:10 - included_file_warning
warning - Warning in the included options file C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\very_good_analysis-2.3.0\lib\analysis_options.2.3.0.yaml(4865..4895): 'use_build_context_synchronously' is not
a recognized lint rule - analysis_options.yaml:1:10 - included_file_warning
warning - Warning in the included options file C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\very_good_analysis-2.3.0\lib\analysis_options.2.3.0.yaml(5079..5097): 'use_named_constants' is not a recognized
lint rule - analysis_options.yaml:1:10 - included_file_warning
3 issues found. (ran in 14.5s)
Expected behavior
No error reported in very_good_analysis plugin.
Additional context
flutter doctor output
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.0.1, on Microsoft Windows [Version 10.0.19042.1110], locale en-150)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] Connected device (3 available)
• No issues found!
Reproducible on Linux and Windows machines
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.1, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✗] Linux toolchain - develop for Linux desktop
✗ clang++ is required for Linux development.
It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/
✗ CMake is required for Linux development.
It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded from https://cmake.org/download/
✗ ninja is required for Linux development.
It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases
✗ GTK 3.0 development libraries are required for Linux development.
They are likely available from your distribution (e.g.: apt install libgtk-3-dev)
✗ The blkid development library is required for Linux development.
It is likely available from your distribution (e.g.: apt install libblkid-dev)
✗ The lzma development library is required for Linux development.
It is likely available from your distribution (e.g.: apt install liblzma-dev)
[✓] Android Studio
[✓] Connected device (1 available)
! Doctor found issues in 2 categories.
jorgecoca commented
Hi @Yuiry-IV 👋 !
Would it be possible for you to update to the latest stable
Flutter release, and try again?
I believe the latest stable
is 2.2.3 https://flutter.dev/docs/development/tools/sdk/releases
Yuiry-IV commented
Hello @jorgecoca,
Thank you, it fix an issue 🎉 !