Main: improve readability by moving check creation into a separate function
Main: improve readability by moving check creation into a separate function

HaxeCheckstyle/haxe-checkstyle,AlexHaxe/haxe-checkstyle,adireddy/haxe-checkstyle