This repository was archived by the owner on Jul 30, 2024. It is now read-only.
File tree 3 files changed +33
-5
lines changed
app/current/src/main/scala/io/scalajs/nodejs/dgram
core/src/main/scala/io/scalajs/util 3 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import scala.scalajs.js.annotation.JSImport
16
16
*/
17
17
@ js.native
18
18
@ JSImport (" dgram" , " Socket" )
19
- class Socket extends IEventEmitter {
19
+ class Socket private [ this ] () extends IEventEmitter {
20
20
21
21
/**
22
22
* Tells the kernel to join a multicast group at the given multicastAddress and multicastInterface using the
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ object PromiseHelper {
261
261
case Success (_) =>
262
262
val elapsedTime = System .currentTimeMillis - startTime
263
263
println(f " $action took $elapsedTime msecs " )
264
- case Failure (e ) =>
264
+ case Failure (_ ) =>
265
265
val elapsedTime = System .currentTimeMillis - startTime
266
266
println(f " $action took $elapsedTime msecs " )
267
267
}
Original file line number Diff line number Diff line change @@ -12,9 +12,37 @@ object MySettings {
12
12
" -deprecation" ,
13
13
" -unchecked" ,
14
14
" -feature" ,
15
- " -language:implicitConversions" ,
16
- " -Xlint"
17
- ),
15
+ " -language:implicitConversions"
16
+ ) ++ Seq (
17
+ " adapted-args" ,
18
+ " nullary-unit" ,
19
+ " inaccessible" ,
20
+ " nullary-override" ,
21
+ " infer-any" ,
22
+ " missing-interpolator" ,
23
+ " doc-detached" ,
24
+ " private-shadow" ,
25
+ " type-parameter-shadow" ,
26
+ " poly-implicit-overload" ,
27
+ " option-implicit" ,
28
+ " delayedinit-select" ,
29
+ " package-object-classes" ,
30
+ " stars-align" ,
31
+ " constant" ,
32
+ " nonlocal-return" ,
33
+ " implicit-not-found" ,
34
+ " serial" ,
35
+ " valpattern" ,
36
+ " eta-zero" ,
37
+ " eta-sam" ,
38
+ " deprecation"
39
+ ).map(s => s " -Xlint: ${s}" ) ++ Seq (
40
+ // no privates to allow private constructor
41
+ " imports" ,
42
+ " patvars" ,
43
+ " locals" ,
44
+ " implicits"
45
+ ).map(s => s " -Wunused: ${s}" ),
18
46
scalacOptions in Compile in compile ++= Seq (
19
47
" -Xfatal-warnings"
20
48
),
You can’t perform that action at this time.
0 commit comments