Update the checkstyle configuration to allow suppressing specific checkstyle warnings via annotations #9318
Labels
area/build
Marks an issue as related to our build pipeline (e.g. Maven settings, CI, etc.)
kind/toil
Categorizes an issue or PR as general maintenance, i.e. cleanup, refactoring, etc.
version:8.1.0-alpha2
version:8.1.0
Marks an issue as being completely or in parts released in 8.1.0
Description
Checkstyle does not yet properly handle the new switch expressions we have available in JDK 17. As a result, it flags such as things with INNER_ASSIGNMENT:
This check is normally for such things, where it makes sense:
For switch expressions, I think it's perfectly fine to let it assign.
To circumvent this, you can use
SuppressWarnings
to suppress checks for certain expressions, methods, etc. Unfortunately we need to update the configuration for this.Additionally, please update the build pipeline so
build-tools
is always installed before running the checks, as otherwise the latest configuration is not picked up.The text was updated successfully, but these errors were encountered: