test-suite/js/src/test/scala/org/scalajs/testsuite/javalib/lang/SystemJSTest.scala
Consider using case matching instead of else if blocks
if (inNode) {
test-suite/js/src/test/scala/org/scalajs/testsuite/jsinterop/AsyncTest.scala
Usage of get on optional type.
expect(f.value.get.get).toEqual(6)
Put imports in the beginning of the package
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
try {
Consider using case matching instead of else if blocks
if ((resolution: AnyRef) eq (this: AnyRef)) {
`then` is a reserved keyword don't use it as a name
def `then`[B](
test-suite/js/src/test/scala/org/scalajs/testsuite/library/LinkingInfoTest.scala
Put imports in the beginning of the package
import scala.scalajs.LinkingInfo
test-suite/js/src/test/scala/org/scalajs/testsuite/typedarray/ArrayBufferInputStreamTest.scala
Put imports in the beginning of the package
import js.JSConverters._
test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/lang/MathTest.scala
Put imports in the beginning of the package
import Math.rint
test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/util/ArraysTest.scala
Found unnamed result or parameter
scalajs.zip(sorted).forall(pair => pair ._1 eq pair._2)
Default case not specified.
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.
list.remove(range.last / 2)
Usage of head/last on collections.
ju.Collections.binarySearch(list, toElem(range.last / 2)))
Usage of head/last on collections.
ju.Collections.binarySearch(list, toElem(range.last + 1), cmp))
Usage of head/last on collections.
ju.Collections.binarySearch(list, toElem(range.last + 42), cmp))
Usage of head/last on collections.
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
else if (index + 1 < 42) index + 1 // shifted by 1 removed element
Consider using case matching instead of else if blocks
else if (index + 2 < 52) index + 2 // shifted by 2 removed element
Consider using case matching instead of else if blocks
else if (index < 97) index + 3 // shifted by 3 removed element
Consider using case matching instead of else if blocks
else if (index == 97) 42
More
Previous Next