Check out example codes for "checkstyle for kotlin project". It will help you in understanding the concepts better.

Code Example 1

./gradlew checkstyle

Learn ReactJs, React Native from akashmittal.com