Christopher Fujino
92094802fe
[flutter_tools] update analyze_once_test.dart to be null-safe ( #141790 )
...
Fixes https://github.com/flutter/flutter/issues/141743
I should have made this change in https://github.com/flutter/flutter/pull/124039 , but it escaped my grep search.
2024-01-21 07:54:05 +00:00
Zachary Anderson
d4707d12d5
Roll engine to 9a6c64de8a4694cef59a338cd33ac1a9e7d23d9d ( #141870 )
...
Includes the Engine roll from
https://github.com/flutter/flutter/pull/141841
A new version of Dart is having trouble with the tool integration test
test `passing one file with errors are detected`:
https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20tool_integration_tests_2_4/31851/overview .
However the analysis server emits the expected errors when we give it
both the file without issues and the file with issues.
My guess is that the analysis server has changed it's behavior slightly
when supplied with a single malformed file.
Since the Dart roll is >20 dev versions behind, and this is the only
failing presubmit test, and it's testing something a bit weird, I
suggest we investigate the right way to test the thing that test was
attempting to cover as a follow-up.
2024-01-19 09:38:01 -08:00
Michael Goderbauer
c4b706cd58
Finally remove analysis_options_user.yaml ( #138261 )
...
ð«¡
This was terribly outdated and has long been superseded by `package:flutter_lints`. Also, as of c033718da0
support for this was removed from the analyzer and this file is now even more useless, if that's even possible.
Fixes https://github.com/flutter/flutter/issues/82948 .
2023-11-13 22:13:08 +00:00
Sam Rawlins
33c0f27464
Prepare the analyze_once test for removal of analysis_options_user support ( #138229 )
...
Fixes https://github.com/flutter/flutter/issues/138227 . Work towards https://github.com/flutter/flutter/issues/82948
In c033718da0
, the analyzer's support for `analysis_options_user.yaml` is dropped. So no lint is reported in this test, as expected. This PR changes the test to expect no lint, and also no write the edits that trigger the lint.
2023-11-10 17:38:56 +00:00
Michael Goderbauer
240825a555
Enable private field promotion for flutter_tools ( #134474 )
...
New feature in upcoming Dart 3.2. See https://github.com/dart-lang/language/issues/2020 . Feature is enabled by bumping the min SDK version to 3.2.
Part of https://github.com/flutter/flutter/issues/134476 .
2023-09-12 20:20:04 +00:00
Christopher Fujino
cc83f03822
[flutter_tools] Migrate more integration tests to process result matcher ( #128737 )
...
Part of https://github.com/flutter/flutter/issues/127135
2023-06-15 13:25:32 -07:00
Michael Goderbauer
25e38a2a87
Bump lower Dart SDK constraints to 3.0 & add class modifiers ( #122546 )
...
Bump lower Dart SDK constraints to 3.0 & add class modifiers
2023-03-21 20:21:58 +00:00
Zachary Anderson
a664f08a56
In test of --(no-)fatal-infos analyzer flags, pin missing_return to info ( #120797 )
...
* In test of --(no-)fatal-infos analyzer flags, pin missing_return to info
* Remove trailing spaces
2023-02-15 17:21:49 +00:00
Jackson Gardner
4b8ad1b007
Temporarily disable info-based analyzer unit tests. ( #120753 )
...
We should address this more permanently:
https://github.com/flutter/flutter/issues/120750
2023-02-15 06:29:23 +00:00
Michael Goderbauer
38630b6bd1
Remove unnecessary null checks in flutter_tool
( #118857 )
...
* dart fix --apply
* manual fixes
* fix after merge conflicts
* review
2023-01-23 21:43:08 +00:00
Jackson Gardner
ebeb491895
Use the name of errors, not the diagnostic messages. ( #117229 )
...
* Use the name of errors, not the diagnostic messages.
* Trailing comma.
2022-12-16 22:19:55 +00:00
Siva
7c8e171320
Manual Roll of Flutter Engine from 67254d6e4b03 to 8d83b98c55b3 ( #116635 )
...
* Roll Flutter Engine from 67254d6e4b03 to 8d83b98c55b3
* Roll Dart SDK from 35a9facce191 to e517487c5679 (Dart 3.0) (#38105 )
* Bump SDK versions.
* Bump Dart SDK version constraints
* Update shrine package to 2.0.1 (null safe version)
* Fix more tests.
* Include patches from Jason for min android sdk version
* Fix analyzer warning
2022-12-08 18:03:51 -08:00
Lucas Britto
5d93894264
[flutter_tools] Decouple fatal-warnings check from fatal-infos ( #113748 )
2022-10-26 16:44:25 +00:00
Kate Lovett
7e12b37111
Deprecate 2018 text theme parameters ( #109817 )
2022-08-22 20:00:34 +00:00
Jason Simmons
95a5a8d741
Check for analyzer rule names instead of descriptions in a flutter_tools test ( #107541 )
...
The descriptions can change between different versions of the analyzer.
2022-07-13 09:53:40 -07:00
Jesús S Guerrero
ddd493b927
[flutter_tools] migrate project-validate to analyze --suggestions ( #106149 )
2022-06-24 18:43:07 +00:00
Phil Quitslund
b5e7fb076c
[flutter_tools] rename local functions with _
s ( #102688 )
2022-04-27 16:19:07 -07:00
Alexandre Ardhuin
07f1c20474
add missing trailing commas in list/set/map literals ( #102585 )
2022-04-27 09:15:35 +02:00
Jesús S Guerrero
75127a8007
[flutter_tools] support files in flutter analyze #96231 ( #97021 )
2022-01-24 17:10:16 -08:00
Danny Tuppeny
9d64e94a87
Fix SDK versions for Flutter packages in analyze tests ( #96950 )
...
Fixes https://github.com/flutter/flutter/issues/96931 .
2022-01-20 14:40:42 -08:00
嘟囔
4f5cc21be2
migrate some file to null safety ( #92957 )
2021-12-16 11:39:12 -08:00
Ian Hickson
61a0add286
Enable avoid_redundant_argument_values lint ( #91409 ) ( #91462 )
2021-10-08 09:25:14 -07:00
Zachary Anderson
b9d2177da0
Revert "Enable avoid_redundant_argument_values lint ( #91409 )" ( #91461 )
...
This reverts commit 5fd259be24
.
2021-10-07 21:11:07 -07:00
Ian Hickson
5fd259be24
Enable avoid_redundant_argument_values lint ( #91409 )
2021-10-07 20:13:02 -07:00
Ian Hickson
f25b833f27
Enable avoid_print
lint. ( #91444 )
2021-10-07 16:48:04 -07:00
Mouad Debbar
c2ea78d231
Revert "Enable avoid_print
lint. ( #91332 )" ( #91438 )
...
This reverts commit cb378edc9e
.
2021-10-07 16:16:17 -04:00
Ian Hickson
cb378edc9e
Enable avoid_print
lint. ( #91332 )
2021-10-07 09:53:03 -07:00
Jonah Williams
d5c842c09e
[flutter_tools] make analyze once an integration test ( #85336 )
2021-06-25 12:06:04 -07:00