A CFML wrapper for the "Spotless" java library which provides code formatting over many many languages.
See Spotless on GitHub for more info.
- Install this module.
box install spotlessCF
- Add the module's
lib/
directory to your application'sjavaSettings.loadPaths
:
this.javaSettings.loadPaths = [
// ...
expandPath( "/modules/spotlessCF/lib/spotless-lib-2.22.0/" )
];
Restart your app. The CF engine should "pick up" the spotless jar and load it into the application.
There are two ways to configure spotlessCF module settings:
- Using a
.env
file - Using Module Settings
# settings go here
SPOTLESS_SETTING=blabla
Add the following to config/ColdBox.cfc
and update as necessary:
moduleSettings = {
spotlessCF = {
// settings go here
}
}
The spotlessCF class documentation is auto-generated via DocBox and hosted on Github Pages at michaelborn.github.io/spotlessCF/
I could use help with this!
Special thanks to the Spotless library. I could'na dunnit without ya. 😉