Skip to content

Commit

Permalink
Improve linter results (Fixes several in chipweinberger#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCsabaToth committed Jul 24, 2022
1 parent 79eb0da commit a6ee943
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ include: package:flutter_lints/flutter.yaml

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

analyzer:
exclude:
- /**.pbjson.dart
- /**.pb.dart
- /**.pbenum.dart
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ class DeviceScreen extends StatelessWidget {
});
while (isConnected) {
yield await device.readRssi();
await Future.delayed(Duration(seconds: 1));
await Future.delayed(const Duration(seconds: 1));
}
subscription.cancel();
// Device disconnected, stopping RSSI stream
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ packages:
name: rxdart
url: "https://pub.dartlang.org"
source: hosted
version: "0.27.3"
version: "0.27.5"
sky_engine:
dependency: transitive
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion lib/src/guid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Guid {
final bytes = hex.decode(input);

if (bytes.length != 6) {
throw FormatException("The format is invalid: " + input);
throw FormatException("The format is invalid: $input");
}

return bytes + List<int>.filled(10, 0);
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ dependencies:
sdk: flutter
convert: ^3.0.1
protobuf: ^2.0.1
rxdart: ^0.27.3
rxdart: ^0.27.5
collection: ^1.15.0
meta: ^1.3.0
meta: ^1.7.0

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^1.0.4
flutter_lints: ^2.0.1

flutter:
plugin:
Expand Down

0 comments on commit a6ee943

Please sign in to comment.