implement --checkstyle by copying jslinreporter