Apache Royale Linter
Discover common issues in your .as and .mxml source files
User Guide
Below are some pointers to help you get started with the Apache Royale linter in various environments. This tool can analyze both MXML and ActionScript 3.0 (AS3).
Command line
The bin directory of the Royale SDK should contain the aslint script that will launch the linter. Use aslint --help
to see a list of available linter options.
To use the default linting options, simply pass in the path to a .as or .mxml file as an argument.
aslint src/com/example/MyClass.as
To lint multiple files, pass in a directory path. The linter will search this directory recursively for .as and .mxml files, and it will lint every one that it finds.
aslint src
Editors and IDEs
Consult your editor or IDE documentation to see whether it integrates the Royale linter or not. Many development environments have the ability to run external command line programs, even if the Royale linter is not directly integrated.
Linter configuration
The Royale linter provides a number of command line options to customize its use. You can also save a list of the options for your project in a local configuration file that will be detected automatically.