asformat-config.xml

Configure the Royale formatter for a specific project

If the current working directory contains an asformat-config.xml file, the asformat tool included with Apache Royale will conveniently load this file automatically to configure its options.

The root of this file is an <asformat-config> element. To specify a formatter option, add it as a child element.

<asformat-config>
	<collapse-empty-blocks>true</collapse-empty-blocks>
	<max-preserve-new-lines>3</max-preserve-new-lines>
	<semicolons>ignore</semicolons>
</asformat-config>

For boolean option values, set the text inside the opening and closing tags to true or false. For numeric option values, use the digits 0-9. For string option values, enter the text as you would on the command line.

Disable asformat-config.xml

To disable loading the asformat-config.xml file, use the -skip-local-config-file option.

asformat --skip-local-config-file --write-files src/com/example/MyClass.as