refine & add some rules validator
support validate files under a directory