GiAnG

Results 11 issues of GiAnG

**Describe the issue** This rule https://dart-lang.github.io/linter/lints/avoid_function_literals_in_foreach_calls.html **To Reproduce** Having this line of code (and got the waring violating the rule): `people.forEach((person) => person.foo(param));` **Expected behavior** I think the above code...

set-recommended

**Describe the issue** avoid_function_literals_in_foreach_calls does not warn in chaining calling **To Reproduce** ![image](https://user-images.githubusercontent.com/1596947/146527060-22ee548c-fd28-43cf-8000-6f6ee45882f6.png) **Expected behavior** The 2nd foreach() should also warn like the first one.

set-recommended
false negative

Instead of this: ``` final client = await Client.connect('redis://myredis:8889'); final commands = client.asCommands(); await commands.auth('password'); ``` it is more elegant to do this: ``` final client = await Client.connect('redis://username:password@myredis:8889'); final...

enhancement

If this PR is merged, I will group all of them into a single file, making the repo cleaner.

### Wrong params order of `ProgressCallback` - The correct order should be `downloaded, total`, not `total, downloaded`. ### Wrong calling time of `progressCallback` when downloading - The actual number of...

Unformatted: ``` class A{ A(this.name): super(); final String name; } class B{ B(this.name); final String name; } ``` Formatted: ``` class A { A(this.name) : super(); final String name; }...

common
easy
safe
meh

We have this formatted code snippet: ```Dart void main() { var result = condition ? doA( //6-space indentation here param1, param2, ) : doB(); } ``` it should be like...

as designed

Firstly I thought this is my issue: https://github.com/dart-lang/dart_style/issues/957, but it turns out that it is just a case in a general weird Indentation of multi-line expression body. And moreover, in...

Tried with this code: ``` var response = await Client().get("https://www.google.com/"); var result = parse(response.bodyBytes, encoding: "utf-8"); ``` And got this error: `Unhandled Exception: FormatException: Bad UTF-8 encoding 0xa0 (at offset...

This PR is a continuation of [#415](https://github.com/rrousselGit/flutter_hooks/pull/415) and ensures that: - No public API is changed or affected - No new API is published I want to keep this PR...