Analysis options (#109)

pull/112/head
Brett Morgan 6 years ago committed by GitHub
parent 4f72ab1776
commit d4997f6562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,30 @@
include: package:pedantic/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: false
implicit-dynamic: false
linter:
rules:
- avoid_types_on_closure_parameters
- avoid_void_async
- await_only_futures
- camel_case_types
- cancel_subscriptions
- close_sinks
- constant_identifier_names
- control_flow_in_finally
- empty_statements
- hash_and_equals
- implementation_imports
- non_constant_identifier_names
- package_api_docs
- package_names
- package_prefixed_library_names
- test_types_in_equals
- throw_in_finally
- unnecessary_brace_in_string_interps
- unnecessary_getters_setters
- unnecessary_new
- unnecessary_statements

@ -68,7 +68,7 @@ packages:
source: hosted
version: "1.6.2"
pedantic:
dependency: transitive
dependency: "direct dev"
description:
name: pedantic
url: "https://pub.dartlang.org"
@ -150,4 +150,4 @@ packages:
source: hosted
version: "2.0.8"
sdks:
dart: ">=2.2.0 <3.0.0"
dart: ">=2.3.0-dev <3.0.0"

@ -5,19 +5,19 @@ description: >
version: 1.0.0
environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
sdk: ">=2.3.0-dev <3.0.0"
dependencies:
flutter:
sdk: flutter
provider: ^2.0.1
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
pedantic: ^1.5.0
flutter:

@ -4,7 +4,7 @@ import 'package:provider/provider.dart';
import 'package:provider_counter/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
testWidgets('Counter increments smoke test', (tester) async {
// Build our app, provide it with a model, and trigger a frame.
await tester.pumpWidget(
ChangeNotifierProvider(

Loading…
Cancel
Save