From 16f22dc4ffed556c459444800142e6fea0db8a9d Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Wed, 27 Jul 2022 22:34:44 +0200 Subject: [PATCH] style: Migrate to very_good_analysis --- .../analysis_options.yaml | 12 ++++++++---- .../lib/moxdns_platform_interface.dart | 14 +++++++------- packages/moxdns_platform_interface/pubspec.yaml | 3 ++- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/packages/moxdns_platform_interface/analysis_options.yaml b/packages/moxdns_platform_interface/analysis_options.yaml index a5744c1..b3a83ec 100644 --- a/packages/moxdns_platform_interface/analysis_options.yaml +++ b/packages/moxdns_platform_interface/analysis_options.yaml @@ -1,4 +1,8 @@ -include: package:flutter_lints/flutter.yaml - -# Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options +include: package:very_good_analysis/analysis_options.yaml +linter: + rules: + public_member_api_docs: false + lines_longer_than_80_chars: false + use_setters_to_change_properties: false + avoid_positional_boolean_parameters: false + avoid_bool_literals_in_conditional_expressions: false diff --git a/packages/moxdns_platform_interface/lib/moxdns_platform_interface.dart b/packages/moxdns_platform_interface/lib/moxdns_platform_interface.dart index 2a6f654..9115b6b 100644 --- a/packages/moxdns_platform_interface/lib/moxdns_platform_interface.dart +++ b/packages/moxdns_platform_interface/lib/moxdns_platform_interface.dart @@ -1,23 +1,23 @@ -import "package:plugin_platform_interface/plugin_platform_interface.dart"; +import 'package:plugin_platform_interface/plugin_platform_interface.dart'; class SrvRecord { - final String target; - final int port; - final int priority; - final int weight; const SrvRecord( this.target, this.port, this.priority, - this.weight + this.weight, ); + final String target; + final int port; + final int priority; + final int weight; } abstract class MoxdnsPlatform extends PlatformInterface { - static final Object _token = Object(); MoxdnsPlatform() : super(token: _token); + static final Object _token = Object(); /// Perform the SRV query for [domain]. Use DNSSEC if [dnssec] is true. Future> srvQuery(String domain, bool dnssec); diff --git a/packages/moxdns_platform_interface/pubspec.yaml b/packages/moxdns_platform_interface/pubspec.yaml index b023c47..2c37f02 100644 --- a/packages/moxdns_platform_interface/pubspec.yaml +++ b/packages/moxdns_platform_interface/pubspec.yaml @@ -15,6 +15,7 @@ dependencies: plugin_platform_interface: 2.1.0 dev_dependencies: + flutter_lints: ^2.0.0 flutter_test: sdk: flutter - flutter_lints: ^2.0.0 + very_good_analysis: 2.4.0