Find array accesses out of bounds
ProprietaryMarks an array index that always throws an ArrayIndexOutOfBoundsException: a negative constant, a.length or more on the same array a, or a constant at or past the length of an array created with a constant size or an initializer and held in a local variable that is never reassigned, or in a final field. Accesses in a try block that catches ArrayIndexOutOfBoundsException or IndexOutOfBoundsException are not marked, and neither is a constant index under a condition, or after an if with a branch that leaves the block, that tests a constant the index is built from or, unless the index is negative, the array or a variable holding its length. Skips test sources.
io. moderne. staticanalysis. FindArrayIndexOutOfBoundsmod run . --recipe= io. moderne. staticanalysis. FindArrayIndexOutOfBoundsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.