Skip to content

Commit

Permalink
Add recommended dart lints (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carapacik authored Oct 3, 2022
1 parent 4a4898b commit 1725316
Show file tree
Hide file tree
Showing 13 changed files with 802 additions and 780 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ then run the generator

```sh
# dart
pub run build_runner build
dart pub run build_runner build

# flutter
flutter pub run build_runner build
Expand Down
32 changes: 26 additions & 6 deletions generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 4.1.2

- add recommended dart lints to project

## 4.1.1

- fix error with code_builder version above 4.3.x

## 4.1.0+1

- use dart doc instead of dartdoc

## 4.1.0

- [BREAKING CHANGE] update analyzer to 4.7.x and Dart version to 2.17

## 4.0.3

- fix null compatibility

## 4.0.1

- fix: Code generation will fail if you use the DioResponseType annotation. #452
Expand All @@ -24,7 +44,7 @@

- replace dio by dio_http

- fix generic use toJson method in Post @Body
- fix generic use toJson method in Post @Body

- nullable list of int was added to generator

Expand Down Expand Up @@ -56,7 +76,7 @@

## 1.3.8

- Send list params duplicatedly in multipart
- Send list params duplicative in multipart

## 1.3.7

Expand All @@ -82,7 +102,7 @@

## 1.3.1+4

- add workaroud for [#143]
- add workaround for [#143]

## 1.3.1

Expand All @@ -103,15 +123,15 @@

## 1.2.2

- stringify models in formdata #111
- stringify models in FormData #111

## 1.2.1

- Add `List<File>` support

## 1.2.0

- Add `HttpReposne` to handle the original resposne
- Add `HttpReposne` to handle the original response

## 1.1.0

Expand Down Expand Up @@ -216,7 +236,7 @@ Added support for generic serialization.
```dart
@http.POST('/path/')
@dio.Extra({'my_key':'my_value'})
Future<String>> myMethod();
Future<String> myMethod();
```

- Fixed general dart style and code conventions
Expand Down
16 changes: 1 addition & 15 deletions generator/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
analyzer:
exclude:
- example/**
# - path/to/excluded/files/**

# Lint rules and documentation, see http://dart-lang.github.io/linter/lints
linter:
rules:
- cancel_subscriptions
- hash_and_equals
- iterable_contains_unrelated_type
- list_remove_unrelated_type
- test_types_in_equals
- unrelated_type_equality_checks
- valid_regexps
include: package:lints/recommended.yaml
1 change: 0 additions & 1 deletion generator/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Read about `build.yaml` at https://pub.dartlang.org/packages/build_config
builders:
retrofit:
target: ":retrofit"
Expand Down
Loading

0 comments on commit 1725316

Please sign in to comment.