com.puppycrawl.tools.checkstyle
Class ConfigurationLoader
public final class ConfigurationLoader
Loads a configuration from a standard configuration XML file.
loadConfiguration
public static Configuration loadConfiguration(InputStream aConfigStream,
PropertyResolver aOverridePropsResolver,
boolean aOmitIgnoredModules)
throws CheckstyleException Returns the module configurations from a specified input stream.
Note that clients are required to close the given stream by themselves
aConfigStream - the input stream to the Checkstyle configurationaOverridePropsResolver - overriding propertiesaOmitIgnoredModules - true if modules with severity
'ignore' should be omitted, false otherwise
loadConfiguration
public static Configuration loadConfiguration(String aConfig,
PropertyResolver aOverridePropsResolver)
throws CheckstyleException Returns the module configurations in a specified file.
aConfig - location of config file, can be either a URL or a filenameaOverridePropsResolver - overriding properties
loadConfiguration
public static Configuration loadConfiguration(String aConfig,
PropertyResolver aOverridePropsResolver,
boolean aOmitIgnoredModules)
throws CheckstyleException Returns the module configurations in a specified file.
aConfig - location of config file, can be either a URL or a filenameaOverridePropsResolver - overriding propertiesaOmitIgnoredModules - true if modules with severity
'ignore' should be omitted, false otherwise