configure checkstyle rules

Are there examples of how to configure checkstyle to find the rules externally?  I have tried hosting it on another server I have (which uses https) and it won't let me save the config, even though I can access the URL without authenticating.  I have also tried to create a Stash repo to put the rules into a central location and it saves, but then at run time I get: 

Detected a problem while running static code analysis with Checkstyle: "unable to parse configuration stream - Element type "html" must be declared.:1:32". Check the Stash server logs for details.

My styles looks almost like the default:

<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="Translation"/>
<module name="TreeWalker">
<module name="IllegalImport"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
<module name="MethodLength"/>
<module name="ParameterNumber"/>
<module name="AvoidInlineConditionals"/>
<module name="EmptyStatement"/>
<module name="EqualsHashCode"/>
<module name="IllegalInstantiation"/>
<module name="InnerAssignment"/>
<module name="MissingSwitchDefault"/>
<!-- <module name="RedundantThrows"/> -->
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="FinalClass"/>
<module name="HideUtilityClassConstructor"/>
<module name="InterfaceIsType"/>
<module name="VisibilityModifier"/>
<module name="UpperEll"/>
</module>
</module>

1 answer

This widget could not be displayed.

As a follow up, I was able to host them on an server which uses http and the plugin was able to pull the ruleset.  I suspect it didn't like my SSL certs on the first server,  but examples of how to host them directly in stash (in a central stash repo) would be great.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

527 views 3 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you