Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 107259d

Browse files
authored
Merge pull request #429 from scala-steward/update/scalafmt-core-3.0.8
Update scalafmt-core to 3.0.8
2 parents 8961a4d + b998153 commit 107259d

39 files changed

+139
-139
lines changed

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.0.7"
1+
version = "3.0.8"
22
style = defaultWithAlign
33
maxColumn = 120
44
align.openParenDefnSite = true

app/nodejs-v10/src/test/scala/io/scalajs/nodejs/http/HttpTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class HttpTest extends AnyFunSpec {
1717
assert(server !== null)
1818

1919
// don't listen on a port
20-
//server.listen(58888)
21-
//setTimeout(() => server.close(), 100.millis)
20+
// server.listen(58888)
21+
// setTimeout(() => server.close(), 100.millis)
2222
}
2323

2424
it("should provide statusCode") {

app/nodejs-v10/src/test/scala/io/scalajs/nodejs/http/StatusCodeTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class StatusCodeTest extends AnyFunSpec {
1616
assert(server !== null)
1717

1818
// don't listen on a port
19-
//server.listen(58888)
20-
//setTimeout(() => server.close(), 100.millis)
19+
// server.listen(58888)
20+
// setTimeout(() => server.close(), 100.millis)
2121
}
2222
}
2323
}

app/nodejs-v16/src/main/scala/io/scalajs/nodejs/Error.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ class Error() extends js.Object {
3939
@js.native
4040
@JSGlobal
4141
object Error extends js.Object {
42-
/////////////////////////////////////////////////////////////////////////////////
42+
// ///////////////////////////////////////////////////////////////////////////////
4343
// Properties
44-
/////////////////////////////////////////////////////////////////////////////////
44+
// ///////////////////////////////////////////////////////////////////////////////
4545

4646
/** Error.stackTraceLimit
4747
*/
4848
def stackTraceLimit: Int = js.native
4949

50-
/////////////////////////////////////////////////////////////////////////////////
50+
// ///////////////////////////////////////////////////////////////////////////////
5151
// Methods
52-
/////////////////////////////////////////////////////////////////////////////////
52+
// ///////////////////////////////////////////////////////////////////////////////
5353

5454
/** Creates a .stack property on targetObject, which when accessed returns a string representing the location in the
5555
* code at which Error.captureStackTrace() was called.

app/nodejs-v16/src/main/scala/io/scalajs/nodejs/buffer/Buffer.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ class Buffer protected () extends Uint8Array( /* dummy to trick constructor */ -
3939
@JSBracketAccess
4040
def update(index: Int, value: Int): Unit = js.native
4141

42-
/////////////////////////////////////////////////////////////////////////////////
42+
// ///////////////////////////////////////////////////////////////////////////////
4343
// Methods
44-
/////////////////////////////////////////////////////////////////////////////////
44+
// ///////////////////////////////////////////////////////////////////////////////
4545

4646
/** Compares `buf` with `target` and returns a number indicating whether `buf` comes before, after, or is the same as
4747
* `target` in sort order. Comparison is based on the actual sequence of bytes in each `Buffer`.
@@ -1011,18 +1011,18 @@ class Buffer protected () extends Uint8Array( /* dummy to trick constructor */ -
10111011
@js.native
10121012
@JSGlobal
10131013
object Buffer extends js.Object {
1014-
/////////////////////////////////////////////////////////////////////////////////
1014+
// ///////////////////////////////////////////////////////////////////////////////
10151015
// Properties
1016-
/////////////////////////////////////////////////////////////////////////////////
1016+
// ///////////////////////////////////////////////////////////////////////////////
10171017

10181018
/** This is the number of bytes used to determine the size of pre-allocated, internal Buffer instances used for
10191019
* pooling. This value may be modified.
10201020
*/
10211021
var poolSize: Int = js.native
10221022

1023-
/////////////////////////////////////////////////////////////////////////////////
1023+
// ///////////////////////////////////////////////////////////////////////////////
10241024
// Methods
1025-
/////////////////////////////////////////////////////////////////////////////////
1025+
// ///////////////////////////////////////////////////////////////////////////////
10261026

10271027
/** Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the `Buffer` will be zero-filled.
10281028
*

app/nodejs-v16/src/main/scala/io/scalajs/nodejs/buffer/package.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ package object buffer {
1616
type BlobSources =
1717
js.Array[String] | js.Array[ArrayBuffer] | js.Array[TypedArray[_, _]] | js.Array[DataView] | js.Array[Blob]
1818

19-
/////////////////////////////////////////////////////////////////////////////////
19+
// ///////////////////////////////////////////////////////////////////////////////
2020
// Buffer Extensions
21-
/////////////////////////////////////////////////////////////////////////////////
21+
// ///////////////////////////////////////////////////////////////////////////////
2222

2323
/** Buffer Extensions
2424
*/

app/nodejs-v16/src/main/scala/io/scalajs/nodejs/cluster/Cluster.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ import scala.scalajs.js.annotation.JSImport
1212
*/
1313
@js.native
1414
trait Cluster extends IEventEmitter {
15-
/////////////////////////////////////////////////////////////////////////////////
15+
// ///////////////////////////////////////////////////////////////////////////////
1616
// Constants
17-
/////////////////////////////////////////////////////////////////////////////////
17+
// ///////////////////////////////////////////////////////////////////////////////
1818

1919
val SCHED_NONE: Int = js.native
2020

2121
val SCHED_RR: Int = js.native
2222

23-
/////////////////////////////////////////////////////////////////////////////////
23+
// ///////////////////////////////////////////////////////////////////////////////
2424
// Properties
25-
/////////////////////////////////////////////////////////////////////////////////
25+
// ///////////////////////////////////////////////////////////////////////////////
2626

2727
/** True if the process is a master. This is determined by the process.env.NODE_UNIQUE_ID. If
2828
* process.env.NODE_UNIQUE_ID is undefined, then isMaster is true.
@@ -64,9 +64,9 @@ trait Cluster extends IEventEmitter {
6464
*/
6565
def workers: js.Dictionary[Worker] = js.native
6666

67-
/////////////////////////////////////////////////////////////////////////////////
67+
// ///////////////////////////////////////////////////////////////////////////////
6868
// Methods
69-
/////////////////////////////////////////////////////////////////////////////////
69+
// ///////////////////////////////////////////////////////////////////////////////
7070

7171
/** When they are disconnected all internal handles will be closed, allowing the master process to die gracefully if
7272
* no other event is waiting.

app/nodejs-v16/src/main/scala/io/scalajs/nodejs/cluster/Worker.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import scala.scalajs.js
1111
*/
1212
@js.native
1313
trait Worker extends IEventEmitter {
14-
/////////////////////////////////////////////////////////////////////////////////
14+
// ///////////////////////////////////////////////////////////////////////////////
1515
// Properties
16-
/////////////////////////////////////////////////////////////////////////////////
16+
// ///////////////////////////////////////////////////////////////////////////////
1717

1818
/** Set by calling .kill() or .disconnect(). Until then, it is undefined.
1919
*
@@ -35,9 +35,9 @@ trait Worker extends IEventEmitter {
3535
*/
3636
def process: ChildProcess = js.native
3737

38-
/////////////////////////////////////////////////////////////////////////////////
38+
// ///////////////////////////////////////////////////////////////////////////////
3939
// Methods
40-
/////////////////////////////////////////////////////////////////////////////////
40+
// ///////////////////////////////////////////////////////////////////////////////
4141

4242
/** In a worker, this function will close all servers, wait for the 'close' event on those servers, and then
4343
* disconnect the IPC channel.

app/nodejs-v16/src/main/scala/io/scalajs/nodejs/cluster/package.scala

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import scala.scalajs.js
1111
package object cluster {
1212
type Message = js.Any
1313

14-
/////////////////////////////////////////////////////////////////////////////////
14+
// ///////////////////////////////////////////////////////////////////////////////
1515
// Cluster Events and Extensions
16-
/////////////////////////////////////////////////////////////////////////////////
16+
// ///////////////////////////////////////////////////////////////////////////////
1717

1818
/** Cluster Events
1919
* @param cluster
@@ -92,18 +92,18 @@ package object cluster {
9292
def onSetup(callback: ClusterSettings => Any): Cluster = cluster.on("setup", callback)
9393
}
9494

95-
/////////////////////////////////////////////////////////////////////////////////
95+
// ///////////////////////////////////////////////////////////////////////////////
9696
// Worker Events and Extensions
97-
/////////////////////////////////////////////////////////////////////////////////
97+
// ///////////////////////////////////////////////////////////////////////////////
9898

9999
/** Worker Events and Extensions
100100
* @param worker
101101
* the given [[Worker worker]]
102102
*/
103103
implicit final class WorkerExtensions(private val worker: Worker) extends AnyVal {
104-
/////////////////////////////////////////////////////////////////////////////////
104+
// ///////////////////////////////////////////////////////////////////////////////
105105
// Worker Extensions
106-
/////////////////////////////////////////////////////////////////////////////////
106+
// ///////////////////////////////////////////////////////////////////////////////
107107

108108
/** Send a message to a worker or master, optionally with a handle. In the master this sends a message to a specific
109109
* worker. It is identical to ChildProcess.send(). In a worker this sends a message to the master. It is identical
@@ -114,9 +114,9 @@ package object cluster {
114114
@inline
115115
def sendFuture[T](message: Message): Future[T] = promiseCallback1[T](worker.send(message, _))
116116

117-
/////////////////////////////////////////////////////////////////////////////////
117+
// ///////////////////////////////////////////////////////////////////////////////
118118
// Worker Events
119-
/////////////////////////////////////////////////////////////////////////////////
119+
// ///////////////////////////////////////////////////////////////////////////////
120120

121121
/** Similar to the cluster.on('disconnect') event, but specific to this worker.
122122
* @param callback

app/nodejs-v16/src/main/scala/io/scalajs/nodejs/crypto/Crypto.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import scala.scalajs.js.|
2020
*/
2121
@js.native
2222
trait Crypto extends js.Object {
23-
/////////////////////////////////////////////////////////////////////////////////
23+
// ///////////////////////////////////////////////////////////////////////////////
2424
// Properties
25-
/////////////////////////////////////////////////////////////////////////////////
25+
// ///////////////////////////////////////////////////////////////////////////////
2626

2727
/** The default encoding to use for functions that can take either strings or buffers. The default value is 'buffer',
2828
* which makes methods default to Buffer objects.
@@ -39,9 +39,9 @@ trait Crypto extends js.Object {
3939
@deprecated("Please use crypto.setFips() and crypto.getFips() instead.", "Node.js v10.0")
4040
var fips: Boolean = js.native
4141

42-
/////////////////////////////////////////////////////////////////////////////////
42+
// ///////////////////////////////////////////////////////////////////////////////
4343
// Methods
44-
/////////////////////////////////////////////////////////////////////////////////
44+
// ///////////////////////////////////////////////////////////////////////////////
4545

4646
/** Creates and returns a Cipher object that uses the given algorithm and password.
4747
* @param algorithm

app/nodejs-v16/src/main/scala/io/scalajs/nodejs/dns/DNS.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ object DNS extends DNS {
7777
type Resolver = PromisesResolver
7878
}
7979

80-
/////////////////////////////////////////////////////////////////////////////////
80+
// ///////////////////////////////////////////////////////////////////////////////
8181
// getaddrinfo flags
82-
/////////////////////////////////////////////////////////////////////////////////
82+
// ///////////////////////////////////////////////////////////////////////////////
8383
/** Returned address types are determined by the types of addresses supported by the current system. For example, IPv4
8484
* addresses are only returned if the current system has at least one IPv4 address configured. Loopback addresses are
8585
* not considered.
@@ -97,9 +97,9 @@ object DNS extends DNS {
9797
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs14)
9898
val ALL: Int = js.native
9999

100-
/////////////////////////////////////////////////////////////////////////////////
100+
// ///////////////////////////////////////////////////////////////////////////////
101101
// Error Codes
102-
/////////////////////////////////////////////////////////////////////////////////
102+
// ///////////////////////////////////////////////////////////////////////////////
103103

104104
/** DNS server returned answer with no data. */
105105
val NODATA: String = js.native

app/nodejs-v16/src/main/scala/io/scalajs/nodejs/dns/package.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import scala.scalajs.js.|
99
/** dns package object
1010
*/
1111
package object dns {
12-
/////////////////////////////////////////////////////////////////////////////////
12+
// ///////////////////////////////////////////////////////////////////////////////
1313
// Type Definitions
14-
/////////////////////////////////////////////////////////////////////////////////
14+
// ///////////////////////////////////////////////////////////////////////////////
1515

1616
type DnsError = SystemError
1717

@@ -23,9 +23,9 @@ package object dns {
2323

2424
type ResolveResult = js.Array[String | ResolveObject] | SOA
2525

26-
/////////////////////////////////////////////////////////////////////////////////
26+
// ///////////////////////////////////////////////////////////////////////////////
2727
// Constants
28-
/////////////////////////////////////////////////////////////////////////////////
28+
// ///////////////////////////////////////////////////////////////////////////////
2929

3030
// IPV4 addresses, default
3131
final val RRTYPE_A: RRType = "A"

app/nodejs-v16/src/main/scala/io/scalajs/nodejs/events/EventEmitter.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ trait EventEmitterOptions extends js.Object {
3636
*/
3737
@js.native
3838
trait IEventEmitter extends js.Object {
39-
/////////////////////////////////////////////////////////////////////////////////
39+
// ///////////////////////////////////////////////////////////////////////////////
4040
// Properties
41-
/////////////////////////////////////////////////////////////////////////////////
41+
// ///////////////////////////////////////////////////////////////////////////////
4242

4343
var domain: Domain = js.native
4444

45-
/////////////////////////////////////////////////////////////////////////////////
45+
// ///////////////////////////////////////////////////////////////////////////////
4646
// Methods
47-
/////////////////////////////////////////////////////////////////////////////////
47+
// ///////////////////////////////////////////////////////////////////////////////
4848

4949
/** Alias for emitter.on(eventName, listener).
5050
* @example

app/nodejs-v16/src/main/scala/io/scalajs/nodejs/fs/FSConstants.scala

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import scala.scalajs.js
77
*/
88
@js.native
99
trait FSConstants extends js.Object {
10-
/////////////////////////////////////////////////////////////////////////////////
10+
// ///////////////////////////////////////////////////////////////////////////////
1111
// File Access Constants
1212
//
1313
// The following constants are meant for use with fs.access().
14-
///////////////////////////////////////////////////////////////////////////////// `
14+
// /////////////////////////////////////////////////////////////////////////////// `
1515

1616
/** File is visible to the calling process. This is useful for determining if a file exists, but says nothing about
1717
* rwx permissions. Default if no mode is specified.
@@ -30,11 +30,11 @@ trait FSConstants extends js.Object {
3030
*/
3131
val X_OK: FileMode = js.native
3232

33-
/////////////////////////////////////////////////////////////////////////////////
33+
// ///////////////////////////////////////////////////////////////////////////////
3434
// File Mode Constants
3535
//
3636
// The following constants are meant for use with fs.Stats.
37-
///////////////////////////////////////////////////////////////////////////////// `
37+
// /////////////////////////////////////////////////////////////////////////////// `
3838
val S_IRGRP: FileMode = js.native
3939
val S_IROTH: FileMode = js.native
4040
val S_IRUSR: FileMode = js.native
@@ -48,11 +48,11 @@ trait FSConstants extends js.Object {
4848
val S_IXOTH: FileMode = js.native
4949
val S_IXUSR: FileMode = js.native
5050

51-
/////////////////////////////////////////////////////////////////////////////////
51+
// ///////////////////////////////////////////////////////////////////////////////
5252
// File Open Constants
5353
//
5454
// The following constants are meant for use with fs.open().
55-
/////////////////////////////////////////////////////////////////////////////////
55+
// ///////////////////////////////////////////////////////////////////////////////
5656

5757
/** Flag indicating to open a file for read-only access.
5858
*/
@@ -121,12 +121,12 @@ trait FSConstants extends js.Object {
121121
*/
122122
val O_DSYNC: Int = js.native
123123

124-
/////////////////////////////////////////////////////////////////////////////////
124+
// ///////////////////////////////////////////////////////////////////////////////
125125
// File Type Constants
126126
//
127127
// The following constants are meant for use with the fs.Stats object's mode
128128
// property for determining a file's type.
129-
/////////////////////////////////////////////////////////////////////////////////
129+
// ///////////////////////////////////////////////////////////////////////////////
130130

131131
/** Bit mask used to extract the file type code.
132132
*/
@@ -160,9 +160,9 @@ trait FSConstants extends js.Object {
160160
*/
161161
val S_IFSOCK: FileType = js.native
162162

163-
/////////////////////////////////////////////////////////////////////////////////
163+
// ///////////////////////////////////////////////////////////////////////////////
164164
// File Copy Constants
165-
/////////////////////////////////////////////////////////////////////////////////
165+
// ///////////////////////////////////////////////////////////////////////////////
166166
val COPYFILE_EXCL: Int = js.native
167167
val COPYFILE_FICLONE: Int = js.native
168168
val COPYFILE_FICLONE_FORCE: Int = js.native

app/nodejs-v16/src/main/scala/io/scalajs/nodejs/fs/Fs.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ trait Fs extends js.Object {
2828
*/
2929
def constants: FSConstants = js.native
3030

31-
/////////////////////////////////////////////////////////////////////////////////
31+
// ///////////////////////////////////////////////////////////////////////////////
3232
// Methods
33-
/////////////////////////////////////////////////////////////////////////////////
33+
// ///////////////////////////////////////////////////////////////////////////////
3434

3535
/** Tests a user's permissions for the file specified by path. mode is an optional integer that specifies the
3636
* accessibility checks to be performed. The following constants define the possible values of mode. It is possible

app/nodejs-v16/src/main/scala/io/scalajs/nodejs/fs/ReadStream.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import scala.scalajs.js.|
1515
@js.native
1616
@JSImport("fs", "ReadStream")
1717
class ReadStream(path: Path) extends stream.Readable {
18-
/////////////////////////////////////////////////////////////////////////////////
18+
// ///////////////////////////////////////////////////////////////////////////////
1919
// Properties
20-
/////////////////////////////////////////////////////////////////////////////////
20+
// ///////////////////////////////////////////////////////////////////////////////
2121

2222
/** The number of bytes read so far.
2323
*/
@@ -29,9 +29,9 @@ class ReadStream(path: Path) extends stream.Readable {
2929
*/
3030
def path: Buffer | String = js.native
3131

32-
/////////////////////////////////////////////////////////////////////////////////
32+
// ///////////////////////////////////////////////////////////////////////////////
3333
// Methods
34-
/////////////////////////////////////////////////////////////////////////////////
34+
// ///////////////////////////////////////////////////////////////////////////////
3535

3636
/** Undocumented method
3737
* @see

0 commit comments

Comments
 (0)