Skip to content

Commit

Permalink
🧑‍💻 update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed Jul 9, 2023
1 parent a261983 commit db6df86
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 123 deletions.
20 changes: 0 additions & 20 deletions example/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,6 @@ analyzer:
- "**.g.dart"
- "**.chopper.dart"
- "**.mocks.dart"
plugins:
- dart_code_metrics

dart_code_metrics:
metrics:
cyclomatic-complexity: 20
number-of-arguments: 4
maximum-nesting-level: 5
metrics-exclude:
- test/**
rules:
- newline-before-return
- no-boolean-literal-compare
- no-empty-block
- prefer-trailing-comma
- prefer-conditional-expressions
- no-equal-then-else
anti-patterns:
- long-method
- long-parameter-list

linter:
rules:
Expand Down
3 changes: 2 additions & 1 deletion example/lib/json_decode_service.activator.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions example/lib/json_decode_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ part 'json_decode_service.worker.g.dart';
// disable web to keep the number of generated files low for this example
web: false,
)
class JsonDecodeService extends WorkerService
with $JsonDecodeServiceOperations {
class JsonDecodeService {
@SquadronMethod()
Future<dynamic> jsonDecode(String source) async => json.decode(source);
}
12 changes: 7 additions & 5 deletions example/lib/json_decode_service.vm.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit db6df86

Please sign in to comment.