Skip to content

Commit 0f07c40

Browse files
committed
Update linter config; Fix lints
1 parent 6b1cb4e commit 0f07c40

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

analysis_options.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
include: package:lints/recommended.yaml
22

3+
linter:
4+
rules:
5+
unrelated_type_equality_checks: false
6+
implementation_imports: false
7+
38
analyzer:
4-
exclude: [build/**]
9+
exclude: [build/**, example/**]
510
language:
611
strict-raw-types: true
712
strong-mode:

lib/src/model/play_parameters.dart

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class PlayParameters implements IPlayParameters {
6868
PlayParameters(this._node, this.track, this.guildId, this.replace, this.startTime, this.endTime, this.requester, this.channelId);
6969

7070
/// Forces the song to start playing
71+
@override
7172
void startPlaying() {
7273
if (endTime == null) {
7374
(_node as Node).sendPayload("play", guildId, {"track": track.track, "noReplace": !replace, "startTime": startTime.inMilliseconds});
@@ -79,6 +80,7 @@ class PlayParameters implements IPlayParameters {
7980
}
8081

8182
/// Puts the track on the queue and starts playing if necessary
83+
@override
8284
void queue() {
8385
final player = (_node as Node).players[guildId];
8486

lib/src/node/node_runner.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import 'node_options.dart';
2828
*/
2929
Future<void> handleNode(SendPort clusterPort) async {
3030
WebSocket? socket;
31-
StreamSubscription? socketStream;
31+
StreamSubscription<dynamic>? socketStream;
3232

3333
// First thing to do is to return a send port to the cluster to communicate with the node
3434
final receivePort = ReceivePort();

0 commit comments

Comments
 (0)