#/usr/bin/python
#encoding=utf-8

import sys
import os
from reporter.ReporterUtil import ReporterUtil
from cssparser.CssFileParser import CssParser
from ckstyle.cmdconsole.ConsoleClass import console
from CssCheckerWrapper import CssChecker
import command.args as args

defaultConfig = args.CommandArgs()

def doFix(fileContent, fileName = '', config = defaultConfig):
    '''封装一下'''
    parser = CssParser(fileContent, fileName)
    parser.doParse(config)

    checker = CssChecker(parser, config)

    checker.loadPlugins(os.path.realpath(os.path.join(__file__, '../plugins')))
    checker.doFix()

    return checker

@@ -52,55 +52,8 @@
  os%0A
-from reporter.ReporterUtil import ReporterUtil%0A
 from

remove unused module