elasticsearch/build-conventions
Rory Hunter 0df14382b9
Add Checkstyle rule for broken switch cases (#88739)
We use `between(x, y)` calls with `switch` statements in tests to
randomize test behaviour. However, some usages define `case` statements
that can never execute, because the `case` value is outside the range
defined by the `between` call.

Write a rule that inspects the switches and the cases, and fails on the
broken cases. This rule checks `between`, `randomIntBetween` and
`randomInt`.
2022-07-27 09:22:06 +01:00
..
src/main/java/org/elasticsearch/gradle/internal Add Checkstyle rule for broken switch cases (#88739) 2022-07-27 09:22:06 +01:00
build.gradle Port build dependencies to gradle version catalogue (#86548) 2022-05-10 12:15:36 +02:00
elastic.importorder Format build-tools and build-tools-internal (#78910) 2021-10-14 09:38:06 +01:00
formatterConfig.xml Format build-tools and build-tools-internal (#78910) 2021-10-14 09:38:06 +01:00
settings.gradle Port build dependencies to gradle version catalogue (#86548) 2022-05-10 12:15:36 +02:00