test-suite/js/src/test/scala/org/scalajs/testsuite/javalib/lang/SystemJSTest.scala

Consider using case matching instead of else if blocks
109
if (inNode) {

test-suite/js/src/test/scala/org/scalajs/testsuite/jsinterop/AsyncTest.scala

Usage of get on optional type.
185
expect(f.value.get.get).toEqual(6)
Put imports in the beginning of the package
231
import scala.scalajs.js.JSConverters._

test-suite/js/src/test/scala/org/scalajs/testsuite/jsinterop/PromiseMock.scala

Consider using util.Try instead of a try-catch block
21
try {
Consider using case matching instead of else if blocks
164
if ((resolution: AnyRef) eq (this: AnyRef)) {
`then` is a reserved keyword don't use it as a name
200
def `then`[B](

test-suite/js/src/test/scala/org/scalajs/testsuite/library/LinkingInfoTest.scala

Put imports in the beginning of the package
18
import scala.scalajs.LinkingInfo

test-suite/js/src/test/scala/org/scalajs/testsuite/typedarray/ArrayBufferInputStreamTest.scala

Put imports in the beginning of the package
178
import js.JSConverters._

test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/lang/MathTest.scala

Put imports in the beginning of the package
197
import Math.rint

test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/util/ArraysTest.scala

Found unnamed result or parameter
105
scalajs.zip(sorted).forall(pair => pair ._1 eq pair._2)
Default case not specified.
484
expectException({ Arrays.binarySearch(array, -1, 4, 2) }) {

test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/util/CollectionsOnListsTest.scala

Usage of head/last on collections.
140
list.remove(range.last / 2)
Usage of head/last on collections.
142
ju.Collections.binarySearch(list, toElem(range.last / 2)))
Usage of head/last on collections.
169
ju.Collections.binarySearch(list, toElem(range.last + 1), cmp))
Usage of head/last on collections.
171
ju.Collections.binarySearch(list, toElem(range.last + 42), cmp))
Usage of head/last on collections.
191
if (reversed) range.last - i

test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/util/LinkedHashMapTest.scala

Consider using case matching instead of else if blocks
161
else if (index + 1 < 42) index + 1 // shifted by 1 removed element
Consider using case matching instead of else if blocks
162
else if (index + 2 < 52) index + 2 // shifted by 2 removed element
Consider using case matching instead of else if blocks
163
else if (index < 97) index + 3 // shifted by 3 removed element
Consider using case matching instead of else if blocks
165
else if (index == 97) 42