style: Migrate to very_good_analysis

This commit is contained in:
PapaTutuWawa 2022-07-27 22:34:44 +02:00
parent 5a42949af4
commit 16f22dc4ff
3 changed files with 17 additions and 12 deletions

View File

@ -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

View File

@ -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<List<SrvRecord>> srvQuery(String domain, bool dnssec);

View File

@ -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