Package com.puppycrawl.tools.checkstyle

Examples of com.puppycrawl.tools.checkstyle.DefaultConfiguration.addChild()


    @Override
    protected DefaultConfiguration createCheckerConfig(
        Configuration aCheckConfig)
    {
        final DefaultConfiguration dc = new DefaultConfiguration("root");
        dc.addChild(aCheckConfig);
        return dc;
    }

    @Test
    public void testNewlineAtEndOfFile() throws Exception
View Full Code Here


    @Override
    protected DefaultConfiguration createCheckerConfig(
        Configuration aCheckConfig)
    {
        DefaultConfiguration dc = new DefaultConfiguration("root");
        dc.addChild(aCheckConfig);
        return dc;
    }

    @Test
    public void testAlarm() throws Exception
View Full Code Here

    @Override
    protected DefaultConfiguration createCheckerConfig(
            Configuration aCheckConfig)
    {
        final DefaultConfiguration dc = new DefaultConfiguration("root");
        dc.addChild(aCheckConfig);
        return dc;
    }

    @Test
    public void testDefaultSettings() throws Exception
View Full Code Here

    @Override
    protected DefaultConfiguration createCheckerConfig(
        Configuration aCheckConfig)
    {
        final DefaultConfiguration dc = new DefaultConfiguration("root");
        dc.addChild(aCheckConfig);
        return dc;
    }

    @Test
    public void testDefault() throws Exception
View Full Code Here

    @Override
    protected DefaultConfiguration createCheckerConfig(
        Configuration aCheckConfig)
    {
        final DefaultConfiguration dc = new DefaultConfiguration("root");
        dc.addChild(aCheckConfig);
        return dc;
    }

    @Test
    public void testMissing() throws Exception
View Full Code Here

    DefaultConfiguration result = new DefaultConfiguration("configuration");
    DefaultConfiguration treeWalkerConfig = createCheckConfig(TreeWalker.class);
    // make sure that the tests always run with this charset
    result.addAttribute("charset", "iso-8859-1");
    result.addChild(treeWalkerConfig);
    treeWalkerConfig.addChild(aConfig);
    return result;
  }

  protected String getPath(String aFilename)
  {
View Full Code Here

            final DefaultConfiguration newFilter = new DefaultConfiguration(elementName);

            if (originalElement.getChildren() != null) {
                for (Configuration child : originalElement.getChildren()) {
                    newFilter.addChild(child);
                }
            }
            if (originalElement.getMessages() != null) {
                for (String messageKey : originalElement.getMessages().keySet()) {
                    newFilter.addMessage(messageKey, originalElement.getMessages().get(messageKey));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.