struct element alignment
@jcberquist what can we do to do alignment for struct literals when doing method calls or assignments.
This code
var s = {
themeName : currentSite.getActiveTheme(),
themeRecord : themeRecord,
site : currentSite
}
// Or This
variables.interceptorService.announce(
"cbadmin_onThemeDeactivation",
{
themeName : currentSite.getActiveTheme(),
themeRecord : themeRecord,
site : currentSite
}
);
To look like this
var s = {
themeName : currentSite.getActiveTheme(),
themeRecord : themeRecord,
site : currentSite
}
// Or This
variables.interceptorService.announce(
"cbadmin_onThemeDeactivation",
{
themeName : currentSite.getActiveTheme(),
themeRecord : themeRecord,
site : currentSite
}
);
I am not sure I follow this issue. Are you saying that cfformat is not aligning the colons in your two examples?
Yes exactly. It’s not aligning.
I am not able to reproduce this currently. Given your example code above, if I set "alignment.consecutive.assignments": true and the structs are printed over multiple lines, the colons are aligned. Can I see the full settings you are using to see if some other setting is interfering?
Here are the files for you to test wit Archive.zip h.
I have included our cfformat and the themservice