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

Commit f3b234c

Browse files
authored
Merge pull request #276 from exoego/scalafmt
Update scalafmt and reformat
2 parents e182445 + 817e2a3 commit f3b234c

File tree

12 files changed

+14
-20
lines changed

12 files changed

+14
-20
lines changed

.scalafmt.conf

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

app/nodejs-v10/src/test/scala/io/scalajs/nodejs/child_process/ChildProcessTest.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import org.scalatest.funspec.AsyncFunSpec
1111

1212
/**
1313
* ChildProcess Test
14-
*
1514
*/
1615
class ChildProcessTest extends AsyncFunSpec {
1716
override implicit val executionContext = ExecutionContext.Implicits.global

app/nodejs-v10/src/test/scala/io/scalajs/nodejs/fs/FsTest.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import org.scalatest.funspec.AsyncFunSpec
88

99
/**
1010
* File System (Fs) Tests
11-
*
1211
*/
1312
class FsTest extends AsyncFunSpec {
1413
override implicit val executionContext = ExecutionContext.Implicits.global

app/nodejs-v12/src/test/scala/io/scalajs/nodejs/fs/FsClassesTest.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import scala.scalajs.js.JavaScriptException
77

88
/**
99
* File System (Fs) Tests
10-
*
1110
*/
1211
class FsClassesTest extends AnyFunSpec {
1312
describe("ReadStream") {

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,12 +924,11 @@ object Buffer extends js.Object {
924924

925925
/**
926926
* Returns a new `Buffer` which is the result of concatenating all the `Buffer`s in the `list` together.
927-
927+
*
928928
* @param list List of [[Buffer]] or [[Uint8Array]] instances to concat.
929929
* @param totalLength Total length of the `Buffer` instances in `list` when concatenated.
930930
*
931931
* @see [[https://nodejs.org/api/buffer.html#buffer_class_method_buffer_concat_list_totallength]]
932-
*
933932
*/
934933
def concat[B <: Uint8Array](list: js.Array[B], totalLength: Int): Buffer = js.native
935934
def concat[B <: Uint8Array](list: js.Array[B]): Buffer = js.native

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/child_process/ExecFileSyncOptions.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ trait ExecFileSyncOptions extends js.Object {
3030
var stdio: js.UndefOr[StdIo] = js.undefined
3131

3232
/** Environment key-value pairs
33-
*
34-
*/
33+
*/
3534
var env: js.UndefOr[js.Object] = js.undefined
3635

3736
/** (Default: 'utf8')

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/child_process/ForkOptions.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ trait ForkOptions extends js.Object {
1414
*/
1515
var detached: js.UndefOr[Boolean] = js.undefined
1616

17-
/** Environment key-value pairs */
17+
/** Environment key-value pairs */
1818
var env: js.UndefOr[js.Object] = js.undefined
1919

2020
/** Executable used to create the child process */
2121
var execPath: js.UndefOr[String] = js.undefined
2222

23-
/** List of string arguments passed to the executable (Default: process.execArgv) */
23+
/** List of string arguments passed to the executable (Default: process.execArgv) */
2424
var execArgv: js.UndefOr[Array[String]] = js.undefined
2525

2626
/** From Node.js v13.2.0, v12.16.0.
@@ -42,7 +42,7 @@ trait ForkOptions extends js.Object {
4242
*/
4343
var stdio: js.UndefOr[String | Array[String]] = js.undefined
4444

45-
/** Sets the user identity of the process. (See setuid(2).) */
45+
/** Sets the user identity of the process. (See setuid(2).) */
4646
var uid: js.UndefOr[UID] = js.undefined
4747

4848
/** Sets the group identity of the process. (See setgid(2).) */

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/child_process/SpawnOptions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ trait SpawnOptions extends js.Object {
2727
/** Sets the user identity of the process. (See setuid(2).) */
2828
var uid: js.UndefOr[Int] = js.undefined
2929

30-
/** Sets the group identity of the process. (See setgid(2).) */
30+
/** Sets the group identity of the process. (See setgid(2).) */
3131
var gid: js.UndefOr[Int] = js.undefined
3232

3333
/** If true, runs command inside of a shell.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ object EventEmitter extends js.Object {
167167

168168
/** Change the default captureRejections option on all new EventEmitter objects.
169169
*
170-
* experimental!
170+
* experimental!
171171
*/
172172
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12)
173173
var captureRejections: Boolean = js.native

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ trait Fs extends js.Object with FSConstants {
271271
* @param fd the file descriptor
272272
* @param uid the user ID
273273
* @param gid the group ID
274-
*
275274
*/
276275
def fchownSync(fd: FileDescriptor, uid: UID, gid: GID): Unit = js.native
277276

@@ -1047,7 +1046,7 @@ trait Fs extends js.Object with FSConstants {
10471046
* @param callback will be given three arguments (err, written, buffer) where written specifies how many
10481047
* bytes were written from buffer.
10491048
* @example {{{ fs.write(fd, buffer[, offset[, length[, position]]], callback) }}}
1050-
**/
1049+
*/
10511050
def write(fd: FileDescriptor,
10521051
buffer: js.typedarray.Uint8Array,
10531052
offset: Int | Null,

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/readline/Readline.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import io.scalajs.nodejs.stream.{IReadable, IWritable}
55
import scala.scalajs.js
66
import scala.scalajs.js.annotation.JSImport
77

8-
/**reading
8+
/**
99
* Readline allows of a stream (such as process.stdin) on a line-by-line basis.
1010
* To use this module, do require('readline').
1111
* Note that once you've invoked this module, your Node.js program will not terminate until you've closed the interface.

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/tls/TLSSocket.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,16 @@ trait TLSSocketOptions extends js.Object {
9393
*/
9494
var requestCert: js.UndefOr[Boolean] = js.undefined
9595

96-
/** Optional, see tls.createServer() */
96+
/** Optional, see tls.createServer() */
9797
var rejectUnauthorized: js.UndefOr[Boolean] = js.undefined
9898

99-
/** Optional, see tls.createServer() */
99+
/** Optional, see tls.createServer() */
100100
var NPNProtocols: js.UndefOr[Boolean] = js.undefined
101101

102-
/** Optional, see tls.createServer() */
102+
/** Optional, see tls.createServer() */
103103
var ALPNProtocols: js.UndefOr[ALPNProtocols] = js.undefined
104104

105-
/** Optional, see tls.createServer() */
105+
/** Optional, see tls.createServer() */
106106
var SNICallback: js.UndefOr[js.Function2[String, js.Function, Any]] = js.undefined
107107

108108
/** An optional Buffer instance containing a TLS session. */

0 commit comments

Comments
 (0)