报告索引边界的显式检查。

该快速修复改用 lift

示例:


  var x: Seq[Int]
  if (i < x.length) Some(x(i)) else None

在应用快速修复后:


  var x: Seq[Int]
  x.lift(i)