Skip to content

Commit

Permalink
Merge pull request #98 from osociety/release_v3.2.0
Browse files Browse the repository at this point in the history
Ignoring deprecated member use from same package
  • Loading branch information
git-elliot authored Mar 8, 2023
2 parents 6b1c736 + c4612b3 commit 645628b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions network_tools/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ analyzer:
missing_required_param: error
missing_return: error
must_be_immutable: error
deprecated_member_use_from_same_package: ignore
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
Expand Down
5 changes: 4 additions & 1 deletion network_tools/lib/src/host_scanner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ class HostScanner {
}

static int _validateAndGetLastValidSubnet(
String subnet, int firstHostId, int lastHostId) {
String subnet,
int firstHostId,
int lastHostId,
) {
final int maxEnd = getMaxHost(subnet);
if (firstHostId > lastHostId ||
firstHostId < 1 ||
Expand Down
1 change: 1 addition & 0 deletions network_tools/lib/src/models/active_host.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import 'package:universal_io/io.dart';
class ActiveHost extends Comparable<ActiveHost> {
ActiveHost({
required this.internetAddress,
// ignore: deprecated_consistency
this.openPort = const [],
PingData? pingData,
MdnsInfo? mdnsInfoVar,
Expand Down

0 comments on commit 645628b

Please sign in to comment.