As mentioned [here](https://github.com/checkstyle/checkstyle/pull/7228#pullrequestreview-310817833) `NoArrayTrailingCommaCheck` has to be added in `all-checkstyle-checks.xml`
As mentioned here
NoArrayTrailingCommaCheckhas to be added inall-checkstyle-checks.xml