From 7f5c5afd7386b2799af75a606798e60459706baf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Pola=C5=84ski?= Date: Fri, 1 Dec 2023 13:15:44 +0100 Subject: [PATCH] wip --- analysis_options.yaml | 20 +------------------- example/lib/main.dart | 2 +- pubspec.yaml | 6 +++++- 3 files changed, 7 insertions(+), 21 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index 33d8d562..2fe120ef 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,19 +1 @@ -#include: package:lint/analysis_options.yaml - -analyzer: - -linter: - rules: - close_sinks: true - sort_constructors_first: false - avoid_classes_with_only_static_members: false - avoid_void_async: false - avoid_positional_boolean_parameters: false - avoid_function_literals_in_foreach_calls: false - prefer_constructors_over_static_methods: false - sort_unnamed_constructors_first: false - sized_box_for_whitespace: false - sort_pub_dependencies: false - directives_ordering: false - noop_primitive_operations: false - use_build_context_synchronously: false \ No newline at end of file +include: package:klar_dart_lints/recommended.yaml diff --git a/example/lib/main.dart b/example/lib/main.dart index d4a3f3e1..b8d126a8 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -30,7 +30,7 @@ class _MyAppState extends State { } class _ExampleBody extends StatefulWidget { - const _ExampleBody({super.key}); + const _ExampleBody(); @override State<_ExampleBody> createState() => _ExampleBodyState(); diff --git a/pubspec.yaml b/pubspec.yaml index 90cff867..37595170 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -20,4 +20,8 @@ dependencies: url_launcher: ^6.1.6 dev_dependencies: - lint: ^2.1.2 + klar_dart_lints: + git: + url: git@github.com:klar-mx/klar-dart-lints.git + ref: 1.11.0 +