-
-
Notifications
You must be signed in to change notification settings - Fork 953
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
763f9a5
commit 85908d5
Showing
5 changed files
with
100 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
packages/riverpod_lint_flutter_test/test/lints/functional_ref/functional_ref.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Message: `Type as NamelessRef` | ||
Priority: 90 | ||
Diff for file `test/lints/functional_ref/functional_ref.dart:8`: | ||
``` | ||
int nameless( | ||
// expect_lint: functional_ref | ||
- ref, | ||
+ NamelessRef ref, | ||
) { | ||
return 0; | ||
``` | ||
--- | ||
Message: `Type as NoGenericsRef<A, B>` | ||
Priority: 90 | ||
Diff for file `test/lints/functional_ref/functional_ref.dart:21`: | ||
``` | ||
@riverpod | ||
// expect_lint: functional_ref | ||
- int noGenerics<A extends num, B>(NoGenericsRef ref) => 0; | ||
+ int noGenerics<A extends num, B>(NoGenericsRef<A, B> ref) => 0; | ||
|
||
@riverpod | ||
``` | ||
--- | ||
Message: `Type as MissingGenericsRef<A, B>` | ||
Priority: 90 | ||
Diff for file `test/lints/functional_ref/functional_ref.dart:25`: | ||
``` | ||
@riverpod | ||
// expect_lint: functional_ref | ||
- int missingGenerics<A, B>(MissingGenericsRef ref) => 0; | ||
+ int missingGenerics<A, B>(MissingGenericsRef<A, B> ref) => 0; | ||
|
||
@riverpod | ||
``` | ||
--- | ||
Message: `Type as WrongOrderRef<B, A>` | ||
Priority: 90 | ||
Diff for file `test/lints/functional_ref/functional_ref.dart:29`: | ||
``` | ||
@riverpod | ||
// expect_lint: functional_ref | ||
- int wrongOrder<B, A>(WrongOrderRef ref) => 0; | ||
+ int wrongOrder<B, A>(WrongOrderRef<B, A> ref) => 0; | ||
``` | ||
--- |
1 change: 0 additions & 1 deletion
1
packages/riverpod_lint_flutter_test/test/lints/functional_ref/functional_ref.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters