org.sonar.plugins.checkstyle
Class CheckstyleRulesRepository
java.lang.Object
org.sonar.plugins.checkstyle.CheckstyleRulesRepository
- All Implemented Interfaces:
- Extension, MavenExtension, ConfigurationExportable, ConfigurationImportable, RulesRepository, ServerExtension
public class CheckstyleRulesRepository
- extends java.lang.Object
- implements RulesRepository, ConfigurationExportable, ConfigurationImportable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckstyleRulesRepository
public CheckstyleRulesRepository()
getLanguage
public Language getLanguage()
- Specified by:
getLanguage
in interface RulesRepository
getInitialReferential
public java.util.List<Rule> getInitialReferential()
- Specified by:
getInitialReferential
in interface RulesRepository
parseReferential
public java.util.List<Rule> parseReferential(java.lang.String fileContent)
- Specified by:
parseReferential
in interface RulesRepository
getProvidedProfiles
public java.util.List<RulesProfile> getProvidedProfiles()
- Specified by:
getProvidedProfiles
in interface RulesRepository
loadProvidedProfile
protected RulesProfile loadProvidedProfile(java.lang.String name,
java.lang.String filename)
exportConfiguration
public java.lang.String exportConfiguration(RulesProfile activeProfile)
- Specified by:
exportConfiguration
in interface ConfigurationExportable
importConfiguration
public java.util.List<ActiveRule> importConfiguration(java.lang.String configuration,
java.util.List<Rule> rules)
- Specified by:
importConfiguration
in interface ConfigurationImportable
buildModuleTree
protected Module buildModuleTree(java.util.List<ActiveRule> activeRules)
buildXmlFromModuleTree
protected java.lang.String buildXmlFromModuleTree(Module tree)
addHeaderToXml
protected java.lang.String addHeaderToXml(java.lang.String xmlModules)
buildModuleTreeFromXml
protected Module buildModuleTreeFromXml(java.lang.String configuration)
buildActiveRulesFromModuleTree
protected void buildActiveRulesFromModuleTree(Module moduleTree,
java.lang.String modulePath,
java.util.List<ActiveRule> activeRules,
java.util.List<Rule> rules)
Copyright © 2008 SonarSource SA. All Rights Reserved.