<s> import sys <EOL> from ckstyle . CssCheckerWrapper import doCheck <EOL> from ckstyle . reporter . ReporterUtil import ReporterUtil <EOL> from ckstyle . cssparser . CssFileParser import CssParser <EOL> from ckstyle . entity . StyleSheet import StyleSheet <EOL> def checkCssFileByOpm ( filePath ) : <EOL> fileContent = open ( filePath ) . read ( ) <EOL> checker = doCheck ( fileContent , filePath ) <EOL> if checker . hasError ( ) : <EOL> reporter = ReporterUtil . getReporter ( '<STR_LIT:text>' , checker ) <EOL> reporter . doReport ( ) <EOL> print reporter . export ( ) <EOL> return False <EOL> return True <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> checkCssFileByOpm ( '<STR_LIT>' ) </s>
